From: Date: January 24 2007 3:56pm Subject: troubles with 2.2.0 List-Archive: http://lists.mysql.com/plusplus/6320 Message-Id: <200701241756.38965.breeze@begun.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit 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