X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B0A4F14B280B for ; Wed, 11 Aug 2004 11:53:52 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 16394-08 for ; Wed, 11 Aug 2004 14:53:44 +0000 (GMT) Received: from web54102.mail.yahoo.com (web54102.mail.yahoo.com [206.190.37.237]) by svr1.postgresql.org (Postfix) with SMTP id 3560914B2800 for ; Wed, 11 Aug 2004 11:53:42 -0300 (ADT) Message-ID: <20040811145310.37997.qmail@web54102.mail.yahoo.com> Received: from [81.218.84.228] by web54102.mail.yahoo.com via HTTP; Wed, 11 Aug 2004 07:53:10 PDT Date: Wed, 11 Aug 2004 07:53:10 -0700 (PDT) From: Elie Nacache Subject: Re: [GENERAL] Resultset problem or BUG ! To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-218334159-1092235990=:37197" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=HTML_MESSAGE, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200408/79 X-Sequence-Number: 10801 --0-218334159-1092235990=:37197 Content-Type: text/plain; charset=us-ascii Any Help ! Elie Nacache wrote:Date: Wed, 11 Aug 2004 05:59:35 -0700 (PDT) From: Elie Nacache Subject: Re: [GENERAL] Resultset problem or BUG ! To: Richard Huxton CC: pgsql-general@postgresql.org Hi Richard, Some informations: ============== OS: RedHat DB: PostgreSQL 7.4.3 Driver: PostgreSQL 7.4.2 JDBC3 with SSL (build 213) Here some code: ============ INFO >> sqlDatas is of type ResultSet INFO >> Step first insert new row this.sqlDatas.moveToInsertRow(); this.updateColumns(); this.sqlDatas.insertRow(); this.sqlLineNumber = this.sqlDatas.getRow(); // INFO >> return 0 INFO >> At this step there is no commit INFO >> Second step update the row after collecting updated info this.sqlDatas.absolute(this.sqlLineNumber); // INFO >> throw the exception this.updateColumns(); this.sqlDatas.updateRow(); INFO >> If I fix the sqlLineNumber to 1 and force the absolute(1) then no Execption is thrown but the modification is not seen in the table. Elie Nacache RentaSoft Ltd. Richard Huxton wrote: Elie Nacache wrote: > Hi All, Hi Elie, I'm afraid we'll need more details before we can help. > A data writed in a table but not commited is not accessible in > modification by the resultset. The error returned is "Cannot move to > index of 0". Is this an ODBC or JDBC error? There are specific lists for both of those. > BTW in SQL a sequence of INSERT, UPDATE and then COMMIT work fine. > I'm using the same code with oracle and it's working well. What code? > Is it a BUG !? Can't say. > I'm using psql 7.4.3 on Linux 9.0 psql is the command-line tool, so I'm guessing you mean PostgreSQL (or pgsql) 7.4.3. Likewise, there is no Linux 9.0 - I'm assuming you mean RedHat, SuSE or Mandrake. If you can provide details on how you are accessing the database and a sho rt example of your code, I'm sure someone will be able to help. -- Richard Huxton Archonet Ltd ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org --------------------------------- Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! --0-218334159-1092235990=:37197 Content-Type: text/html; charset=us-ascii
Any Help !

Elie Nacache <elie_nacache@yahoo.com> wrote:
Date: Wed, 11 Aug 2004 05:59:35 -0700 (PDT)
From: Elie Nacache
Subject: Re: [GENERAL] Resultset problem or BUG !
To: Richard Huxton
CC: pgsql-general@postgresql.org

Hi Richard,
 
Some informations:
==============
OS: RedHat
DB: PostgreSQL 7.4.3
Driver: PostgreSQL 7.4.2 JDBC3 with SSL (build 213)
 
Here some code:
============
INFO >> sqlDatas is of type ResultSet
INFO >> Step first insert new row
 
this.sqlDatas.moveToInsertRow();
this.updateColumns();
this.sqlDatas.insertRow();
this.sqlLineNumber = this.sqlDatas.getRow(); // INFO >> return 0
INFO >> At this step there is no commit
INFO >> Second step update the row after collecting updated info
 
this.sqlDatas.absolute(this.sqlLineNumber); // INFO >> throw the exception
this.updateColumns();
this.sqlDatas.updateRow();
INFO >> If I fix the sqlLineNumber to 1 and force the absolute(1) then no Execption is thrown but the modification is not seen in the table.
 
Elie Nacache
RentaSoft Ltd.

Richard Huxton <dev@archonet.com> wrote:
Elie Nacache wrote:
> Hi All,

Hi Elie, I'm afraid we'll need more details before we can help.

> A data writed in a table but not commited is not accessible in
> modification by the resultset. The error returned is "Cannot move to
> index of 0".

Is this an ODBC or JDBC error? There are specific lists for both of those.

> BTW in SQL a sequence of INSERT, UPDATE and then COMMIT work fine.

> I'm using the same code with oracle and it's working well.

What code?

> Is it a BUG !?

Can't say.

> I'm using psql 7.4.3 on Linux 9.0

psql is the command-line tool, so I'm guessing you mean PostgreSQL (or
pgsql) 7.4.3. Likewise, there is no Linux 9.0 - I'm assuming you mean
RedHat, SuSE or Mandrake.

If you can provide details on how you are accessing the database and a
sho rt example of your code, I'm sure someone will be able to help.
--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers! --0-218334159-1092235990=:37197--