Re: getXXX throws SQLException while on insert row - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: getXXX throws SQLException while on insert row
Date
Msg-id Pine.BSO.4.64.0802110037150.10696@leary.csoft.net
Whole thread Raw
In response to Re: getXXX throws SQLException while on insert row  (andreasfreyer <freyer@online.de>)
Responses Re: getXXX throws SQLException while on insert row  (andreasfreyer <freyer@online.de>)
List pgsql-jdbc

On Sun, 10 Feb 2008, andreasfreyer wrote:

> I would like to draw our attention to the the last sentence:
> "An updater method must be called before a getter method can be called on a
> column value."
>
> That means after setting a value [rs.updateXXX(abc)] it is possible to get
> it back [rs.getXXX()] without doing anything else in between [so without
> rs.insertRow() or rs.updateRow()].
>

OK, I read that the same way you do (the pg driver is currently wrong).
I'll take a look to see how hard this will be to fix.

Kris Jurka

pgsql-jdbc by date:

Previous
From: andreasfreyer
Date:
Subject: Re: getXXX throws SQLException while on insert row
Next
From: Kris Jurka
Date:
Subject: Re: Patch for Statement.getGeneratedKeys()