From: Kemin Zhou Date: January 30 2011 12:42am Subject: Re: Not enough parameters to fill the template List-Archive: http://lists.mysql.com/plusplus/9205 Message-Id: <4D44B40B.1070104@lbl.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/