Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 5622A9FBA11 for ; Thu, 15 Feb 2007 06:13:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 31635-06 for ; Thu, 15 Feb 2007 06:13:49 -0400 (AST) X-Greylist: delayed 00:05:19.633225 by SQLgrey-1.7.4 Received: from mail.gtech.kiev.ua (mail.gtech.kiev.ua [91.90.17.51]) by postgresql.org (Postfix) with ESMTP id E42D19FB9EE for ; Thu, 15 Feb 2007 06:13:51 -0400 (AST) Received: from localhost ([127.0.0.1]) by mail.gtech.kiev.ua (using TLSv1/SSLv3 with cipher AES256-SHA (256 bits)) for pgsql-jdbc@postgresql.org; Thu, 15 Feb 2007 13:08:41 +0200 Message-ID: <45D4311A.6050308@gtech-ua.com> Date: Thu, 15 Feb 2007 12:08:26 +0200 From: Vit Timchishin User-Agent: Thunderbird 1.5.0.9 (X11/20060911) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Synthesize support for Statement.getGeneratedKeys()? References: <4580E681.3080106@kensystem.com> <45B9A9D6.2080100@kensystem.com> <45BECBA1.8080508@kensystem.com> <45D24BF2.6010405@kensystem.com> <45D3E22F.9050009@kensystem.com> In-Reply-To: <45D3E22F.9050009@kensystem.com> Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.862 tagged_above=0 required=5 tests=BAYES_50, FROM_LOCAL_NOVOWEL X-Spam-Level: ** X-Archive-Number: 200702/71 X-Sequence-Number: 16627 Ken Johanson wrote: > Kris Jurka wrote: >> >> >> On Tue, 13 Feb 2007, Ken Johanson wrote: >> >>> I have not tested this exhaustively, nor given though about the >>> correctness of the null-normalization below; is this enough for you >>> or someone to commit the changes? >>> >> >> No, you've provided the sketch of a solution, but it's not >> appropriate for the driver until you've resolved things like quoting >> column names, putting in a version check for a server that supports >> RETURNING, and added some test cases. Some or all of this can be >> done by the committer, but the more work the committer must do the >> less likely it's going to happen. >> >> Kris Jurka >> > > This patch adds server version checking and only basic quoting to > AbstractJdbc3Statement. No test cases. > > It only checks for server version 8 or newer as I couldn't easily find > the threshold for the RETURNING support. 8.1.5 does not have it. I suppose it is 8.2 feature. You can check by looking into 8.1 and 8.2 documentation, and, I suppose, "what's new" for 8.2