From: Mathias Laurent <e1lauren@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: [JDBC] InsertRow problem with Serial
Date: Thu, 18 May 2006 16:43:39 +0000
Message-ID: <BAY112-F20F370AA8DD7A2EDF7BB09AA60@phx.gbl> (raw)
In-Reply-To: <20060518131029.GD32278@surnet.cl>
Hello,
I have a problem with the driver JDBC3,
MyTable(col1(SERIAL), col2(VARCHAR), Col3(VARCHAR))
When i do
>rs.moveToInsertRow();
>rs.updateString("col2",col2);
>rs.updateString("col3",col3);
>rs.insertRow();
>con.commit();
>rs.next();
>rs.refreshRow();
The ResulSet is not refreshed for the first column, the value for col1 is 0.
Although insertion in the base worked and the serial have the good value
!!! And this code works perfectly for MySql :(
If somebody knows when that can come from ?
Thank you,
Mathias Laurent
_________________________________________________________________
Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search !
http://desktop.msn.fr/
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-admin@postgresql.org
Cc: e1lauren@hotmail.com
Subject: Re: [JDBC] InsertRow problem with Serial
In-Reply-To: <BAY112-F20F370AA8DD7A2EDF7BB09AA60@phx.gbl>
References: <20060518131029.GD32278@surnet.cl> <BAY112-F20F370AA8DD7A2EDF7BB09AA60@phx.gbl>
* 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