From: Warren Young Date: December 4 2009 11:46am Subject: Re: Template query change from v2 to v3 List-Archive: http://lists.mysql.com/plusplus/8800 Message-Id: <4B18F691.5020002@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Martin Gallwey wrote: > > 1) Revision 1446 changed the detection of a templated query to search > for the magic size of '2' for parse_elems_. There's no "magic" here. The problem is how do you distinguish a lone string parameter for a template query containing only %0 from a raw query string? The core problem is the number of overloads for execute() and such, and maintaining unambiguity through call chains that may pass through several of these overloads. I haven't tried your patch, but I'd be surprised -- since it just reverts a patch -- if it doesn't break this again. You're welcome to continue working on this, but you'll have to take care of the single-string-parameter case to have the patch accepted.