List:MySQL++« Previous MessageNext Message »
From:Королев Илья Date:January 25 2007 8:54am
Subject:Re: troubles with 2.2.0
View as plain text  
> The bug is that preview is inserting a null byte into the query string
> on every call.  Two calls, two null bytes; three calls, three null
> bytes.  One ever responded to by bug report.  Changes in the new
> release were made to allow null bytes in query strings, so possibly
> the old code masked the error and the new code reveals it.

Hm... What for null byte is inserting? IMHO result of function 
std::string.c_str() everywhere is a zero terminated string.

I comment line
*this << std::ends;
in Query::str(...), and it's working. At least for me (Linux, gcc 4.1.1) and 
at least for simple queries. 
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