X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7087A5E471B for ; Wed, 1 Sep 2004 00:34:34 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 71200-06 for ; Wed, 1 Sep 2004 03:34:36 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 72DEC5E4701 for ; Wed, 1 Sep 2004 00:34:26 -0300 (ADT) Received: from flood.opencloud.co.nz ([192.168.0.31]) by yass.opencloud.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1C2LtG-0007t4-00; Wed, 01 Sep 2004 15:34:30 +1200 Message-ID: <41354344.9010702@opencloud.com> Date: Wed, 01 Sep 2004 15:34:28 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GGattis@iTeamOne.com Cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC Update question (quoted strings) References: <1094007567.8130.34.camel@Kernighan.iTeamOne.com> In-Reply-To: <1094007567.8130.34.camel@Kernighan.iTeamOne.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/2 X-Sequence-Number: 10892 Gerry Gattis wrote: > I had to make an unexpected adjustment in a query string in order to > insert a record into a table. I was would like to know if anyone has a > remedy for this. Here is a short description. > > String strInsert = "insert into myTable (lastName) values (?)"; > PreparedStatement stm = conn.prepareCall(strInsert); > stm.setString(1, "Smith"); > // OK so far > stm.execute(); > //fails with an error message attribute Smith not found That sounds like a bug. What driver version are you using? -O