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++

http://tangentsoft.net/mysql++/doc/html/userman/tutorial.html#qescape

> 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.
Thread
Escaping queriesr ottmanj12 Dec
  • Re: Escaping queriesWarren Young12 Dec