List:MySQL++« Previous MessageNext Message »
From:Королев Илья Date:January 24 2007 2:56pm
Subject:troubles with 2.2.0
View as plain text  
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
Thread
troubles with 2.2.0Королев Илья24 Jan
  • Re: troubles with 2.2.0Robert Mecklenburg24 Jan
    • Re: troubles with 2.2.0Warren Young24 Jan
      • Re: troubles with 2.2.0Robert Mecklenburg25 Jan
    • Re: troubles with 2.2.0Королев Илья25 Jan
      • Re: troubles with 2.2.0Drew M.27 Jan
  • Re: troubles with 2.2.0Warren Young24 Jan
    • Re: troubles with 2.2.0Королев Илья25 Jan
    • Re: troubles with 2.2.0Королев Илья1 Feb