Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 5BB789FB53D for ; Thu, 15 Feb 2007 23:34:30 -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 07345-03 for ; Thu, 15 Feb 2007 23:34:27 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 101089FB91A for ; Thu, 15 Feb 2007 23:34:26 -0400 (AST) Received: (qmail 21834 invoked by uid 1112); 16 Feb 2007 03:34:25 -0000 Date: Thu, 15 Feb 2007 22:34:25 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Ken Johanson cc: pgsql-jdbc@postgresql.org Subject: Re: Synthesize support for Statement.getGeneratedKeys()? In-Reply-To: <45D4EF6A.4000608@kensystem.com> Message-ID: References: <4580E681.3080106@kensystem.com> <45B9A9D6.2080100@kensystem.com> <45BECBA1.8080508@kensystem.com> <45D24BF2.6010405@kensystem.com> <45D3E22F.9050009@kensystem.com> <45D4311A.6050308@gtech-ua.com> <45D4EF6A.4000608@kensystem.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/77 X-Sequence-Number: 16633 On Thu, 15 Feb 2007, Ken Johanson wrote: > This patch adds the Major and Minor version checking, for server >=8.2. > The correct version check should be written: if (connection.haveMinimumServerVersion("8.2")) I'm also not sure about the getGeneratedKeys method. Should we throw an Exception instead of returning an empty ResultSet if there weren't any generated keys? Also do we need to do better tracking of what comes from generated keys vs just regular results? Once people start using this functionality we'll need some better error checking. Kris Jurka