List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:December 12 2008 2:12am
Subject:Re: Escaping queries
View as plain text  
On Dec 11, 2008, at 4:23 PM, r ottmanj wrote:

> is there another way to do it with mysql++

> insStr = insStr + "," + column

C++ is not one of the languages where concatenating strings like this  
works very well.  It *can* work, but due to the limitations of a  
static type system, it's often more trouble than it's worth.  Better  
to use IOstream objects like ostringstream and mysqlpp::Query.
Escaping queriesr ottmanj12 Dec
  • Re: Escaping queriesWarren Young12 Dec