9 messages in com.mysql.lists.plusplusRe: troubles with 2.2.0
FromSent OnAttachments
Королев Илья24 Jan 2007 06:56 
Robert Mecklenburg24 Jan 2007 07:33 
Warren Young24 Jan 2007 08:40 
Warren Young24 Jan 2007 08:44 
Robert Mecklenburg24 Jan 2007 15:16 
Королев Илья24 Jan 2007 23:55 
Королев Илья25 Jan 2007 00:53 
Drew M.26 Jan 2007 23:47.cpp
Королев Илья01 Feb 2007 06:16 
Subject:Re: troubles with 2.2.0
From:Королев Илья (bre@begun.ru)
Date:01/25/2007 12:53:54 AM
List:com.mysql.lists.plusplus

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.