List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:August 24 2010 10:16am
Subject:Re: mysql++ 3.1.0 upgrade issues
View as plain text  
On Aug 23, 2010, at 4:57 PM, Jason Toffaletti wrote:

> I put together some code that reproduces the problem

Thanks, that was enough to make the problem clear.

The bug was introduced as part of a change to allow repeating template query parameters
(e.g. "%0q ...stuff... %0q") which worked fine for every case but Query::storein() with
template query parameters, which we currently have no tests for.

You can either check the current svn version out, or go into your lib/query.cpp file and
make six changes of this form:

-	if (!parse_elems_.empty() && !template_defaults.processing_) {
+	if ((parse_elems_.size() == 2) && !template_defaults.processing_) {

This reverts part of the previous patch without apparently reverting us to the broken
pre-3.1.0 behavior.
Thread
mysql++ 3.1.0 upgrade issuesJason Toffaletti23 Aug
  • Re: mysql++ 3.1.0 upgrade issuesWarren Young23 Aug
Re: mysql++ 3.1.0 upgrade issuesJason Toffaletti23 Aug
  • Re: mysql++ 3.1.0 upgrade issuesWarren Young23 Aug
Re: mysql++ 3.1.0 upgrade issuesJason Toffaletti24 Aug
  • Re: mysql++ 3.1.0 upgrade issuesWarren Young24 Aug