From: Vit Timchishin <tivvpgsqljdbc@gtech-ua.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Synthesize support for Statement.getGeneratedKeys()?
Date: Thu, 15 Feb 2007 12:08:26 +0200
Message-ID: <45D4311A.6050308@gtech-ua.com> (raw)
In-Reply-To: <45D3E22F.9050009@kensystem.com>
References: <4580E681.3080106@kensystem.com>
<45B9A9D6.2080100@kensystem.com>
<Pine.BSO.4.64.0701262352340.20148@leary2.csoft.net>
<45BECBA1.8080508@kensystem.com>
<Pine.BSO.4.64.0702011325410.23261@leary2.csoft.net>
<45D24BF2.6010405@kensystem.com>
<Pine.BSO.4.64.0702141250550.3571@leary.csoft.net>
<45D3E22F.9050009@kensystem.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tivvpgsqljdbc@gtech-ua.com
Subject: Re: Synthesize support for Statement.getGeneratedKeys()?
In-Reply-To: <45D4311A.6050308@gtech-ua.com>
References: <4580E681.3080106@kensystem.com> <45B9A9D6.2080100@kensystem.com> <Pine.BSO.4.64.0701262352340.20148@leary2.csoft.net> <45BECBA1.8080508@kensystem.com> <Pine.BSO.4.64.0702011325410.23261@leary2.csoft.net> <45D24BF2.6010405@kensystem.com> <Pine.BSO.4.64.0702141250550.3571@leary.csoft.net> <45D3E22F.9050009@kensystem.com> <45D4311A.6050308@gtech-ua.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox