|
"quote" manipulator misbehaves: msg#00022db.mysql.c++
I think there's a bug with manipulators for Query. I tried to run the following example (compiled with mingw g++ 3.4.5): mysqlpp::Query query (&con); query << "INSERT INTO foo (title) VALUES(" << mysqlpp::quote << "Abra'Cadabra"; query.execute (); As the result, the manipulator is ignored and the parameter is passed as is and an exception is thrown. But if I pass the c-string (Abra'Cadabra) as a c++ string object string("Abra'Cadabra") the manipulator works as it's supposed to. I assume this is a bug, isn't it? I would appreciate any help. Sincerely, Mav -- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Visual Studio unable to locate mysqlpp.dll: 00022, Matt Dargavel |
|---|---|
| Next by Date: | Re: Could not find working MySQL client library!: 00022, Warren Young |
| Previous by Thread: | Visual Studio unable to locate mysqlpp.dlli: 00022, Gary Anderson |
| Next by Thread: | Re: "quote" manipulator misbehaves: 00022, Warren Young |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |