I found the most strange solution:
75 query << "insert into " << badtab << " values(%0, %1q)";
76 cerr << query << " filling ...\n"; // this line supress the bug
The above code fixed the error message (exception) got
suppressed. Actually, I am using 3.0.9
The code was very simple,
I was inserting int,varchar(24) two values into an empty table
with only two columns.
Tomalak Geret'kal wrote:
> On 30/01/2011 00:12, Kemin Zhou wrote:
>> Hi All,
>> I saw that back in August, people are discussing this problem.
>> Not enough parameters to fill the template
>> I have the following tow lines of code that gave me the
>> above error message.
>> 75 query << "insert into " << badtab << " values(%0, %1q)";
>> 76 query.parse();
>> Ovidiu suggested the following solution:
>> The solution is to add "-fsigned-char" to CFLAGS when
>> compiling mysql++ on Linux/PPC.
>> I am using linux.
>> Is this still the only solution?
> Not enough code context to answer this question
> Try adding -fsome-context to your email writing program.
Kemin Zhou, Ph.D.
925 262-3970 Mobile
925 296-5843 Work