From: ZhangFangXue Date: February 19 2013 8:00am Subject: PreparedStatement problem List-Archive: http://lists.mysql.com/mysql/229003 Message-Id: <55799F5869439E46B56F98698F3E2C0409425B@SOGOUEXMB01.sogou-inc.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_55799F5869439E46B56F98698F3E2C0409425BSOGOUEXMB01sogoui_" --_000_55799F5869439E46B56F98698F3E2C0409425BSOGOUEXMB01sogoui_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, when I use PreparedStatement in c++ connector, I find some unexcepted e= rror, prep_stmt =3D con -> prepareStatement ("INSERT INTO City (CityName) VALUES = (?)"); prep_stmt -> setInt (1, 23); //this statement didn't act normally!!! prep_stmt -> setString (1, "23"); // this one is ok, //can anyone tell why, or do I make any mistake, or what should be paid att= ention to? //thx. Best Regards --_000_55799F5869439E46B56F98698F3E2C0409425BSOGOUEXMB01sogoui_--