List:MySQL++« Previous MessageNext Message »
From:Gregory R \(Gregory\) Gaus Date:May 10 2007 7:13pm
Subject:Single Argument Template Query Problem
View as plain text  
I have observed a problem when using a single argument template query
with the 'storein' family of queries. For example:

testQuery << "SELECT * FROM a WHERE b = %0 AND c = 2";

printf("%s\n", testQuery.preview(1).c_str);
// Looks good - prints SELECT * FROM a WHERE b = 1 AND c = 2

Result result = testQuery.store(1);
// Works as expected

testQuery.storein(someContainer, "1");
// Works as expected

testQuery.storein(someContainer, 1);
// Fails - Sends the query "SELECT * FROM a WHERE b = 1 AND c = 2 AND c
= 2"


This was observed using version 2.2.3
Thread
Single Argument Template Query ProblemGregory R \(Gregory\) Gaus10 May
  • Re: Single Argument Template Query ProblemWarren Young27 Jun