List:MySQL++« Previous MessageNext Message »
From:Kemin Zhou Date:January 30 2011 12:42am
Subject:Re: Not enough parameters to fill the template
View as plain text  
Actually,
I found the  most strange solution:
 
75       query << "insert into " << badtab << " values(%0, %1q)";
76       cerr << query << " filling ...\n";  // this line supress the bug
77       query.parse();

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.
>
> Tom
>


-- 
Kemin Zhou, Ph.D.
925 262-3970 Mobile
925 296-5843 Work
http://www.jgi.doe.gov/

Thread
Not enough parameters to fill the templateKemin Zhou30 Jan
  • Re: Not enough parameters to fill the templateTomalak Geret'kal30 Jan
    • Re: Not enough parameters to fill the templateKemin Zhou30 Jan
      • Re: Not enough parameters to fill the templateTomalak Geret'kal30 Jan
        • Re: Not enough parameters to fill the templateKemin Zhou30 Jan
          • Re: Not enough parameters to fill the templateJonathan Wakely31 Jan
    • Re: Not enough parameters to fill the templateKemin Zhou30 Jan
      • Re: Not enough parameters to fill the templateTomalak Geret'kal30 Jan