logo       

"quote" manipulator misbehaves: msg#00022

db.mysql.c++

Subject: "quote" manipulator misbehaves

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>
Google Custom Search

News | FAQ | advertise