Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 020859FA430 for ; Thu, 14 Dec 2006 01:48:57 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 31577-05 for ; Thu, 14 Dec 2006 01:48:52 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from www01.kensystem.com (www01.kensystem.com [72.19.170.120]) by postgresql.org (Postfix) with ESMTP id 600179FA2FD for ; Thu, 14 Dec 2006 01:18:38 -0400 (AST) Received: from 192.168.0.3 by www01.kensystem.com (SMTPD); id s20061214051831.100146; Thu, 14 Dec 2006 05:18:31 Message-ID: <4580DEA7.2030604@kensystem.com> Date: Wed, 13 Dec 2006 22:18:31 -0700 From: Ken Johanson User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Kris Jurka CC: pgsql-jdbc@postgresql.org Subject: Re: PG 8.2's JDBC, and Statement.executeUpdate(String, String[]) References: <4580D56A.10400@kensystem.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/69 X-Sequence-Number: 16301 Kris Jurka wrote: > > > On Wed, 13 Dec 2006, Ken Johanson wrote: > >> Hello all, >> >> I'm getting a: >> >> AbstractMethodError: >> org.postgresql.jdbc2.Jdbc2Statement.executeUpdate(Ljava/lang/String;[Ljava/lang/String;)I >> >> >> when I call Statement.executeUpdate(String, String[]) on the PG 8.2 >> distro's JDBC driver (I did not check any other versions). >> > > executeUpdate(String, String[]) is a JDBC3 method, but you are evidently > using a JDBC2 driver. When you use a JDBC3 driver you will get a > SQLException reporting that this method is not implemented if you > supply anything other than an array of zero length. Actually this > should probably also allow a null array as now it will throw a NPE when > it shouldn't. > > Kris Jurka > > > > Thank you Kris. Yes, I just now noticed that. Had both 2 and 3 drivers in my classpath. Removed the V2 drivers, but now I get a: org.postgresql.util.PSQLException: Returning autogenerated keys is not supported I'll have to do some searching to find out why this features isn't supported (unless someone has quick pointers to docs :). Thank you again, Ken