Re: Proper state after insertRow - Mailing list pgsql-jdbc

From Paul Stead
Subject Re: Proper state after insertRow
Date
Msg-id BNENLMOEFCOIEGKDJMLLEEMICBAA.pstead@elementallogic.com
Whole thread Raw
In response to Re: Proper state after insertRow  (Dave Cramer <Dave@micro-automation.net>)
Responses Re: Proper state after insertRow  (Dave Cramer <Dave@micro-automation.net>)
List pgsql-jdbc
Wouldn't it behave exactly the same as a cursor in a ResultSet before you
call next() for the first time?  Again from JDBC API Tutorial and Reference,
"when a ResultSet object is first created, the cursor is positioned before
the first row, so the first call to next() puts the cursor on the first row,
making it the current row."  So wouldn't moveToCurrentRow return the cursor
to its position before the first row (which now exists, although it didn't
before)?

Paul

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Dave Cramer
Sent: Friday, August 23, 2002 10:38 AM
To: pstead@elementallogic.com
Cc: Zengfa Gao; pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Proper state after insertRow


Ok,

So far this is consistent with what I understand. However there is a
special case ( there always is ;) ). What if the underlying table has no
data in it. In this case the cursor is nowhere!

Dave
On Fri, 2002-08-23 at 12:24, Paul Stead wrote:
> Dave,
>
> No expert here, but according to JDBC API Tutorial and Reference, 2nd Ed,
> from the Java Series:

<<< snip >>>


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Proper state after insertRow
Next
From: Dave Cramer
Date:
Subject: Re: Proper state after insertRow