Hello
I've compile and install svn version and have got some troubles:
i've code like this
Query q;
q << "...";
cerr << q.preview() << endl;
q.execute();
On 2.1.1 it was ok, but now it (sometimes) lead to error
"ERROR - You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near ''
at line 1"
q.preview() shows normal query. But if I comment "cerr" line, query works
fine.
As I explore, such code doesn't work:
string tmp = q.str(q.def); // without this string everything is ok :)
q.execute();
but such is ok:
string tmp = q.str(q.def);
q.execute( tmp.c_str(), tmp.length() );
Can you advice me anything?
Thanks