From: | "Paul Stead" <pstead(at)elementallogic(dot)com> |
---|---|
To: | "Dave Cramer" <Dave(at)micro-automation(dot)net> |
Cc: | <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Proper state after insertRow |
Date: | 2002-08-23 18:32:46 |
Message-ID: | BNENLMOEFCOIEGKDJMLLEEMICBAA.pstead@elementallogic.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org]On Behalf Of Dave Cramer
Sent: Friday, August 23, 2002 10:38 AM
To: pstead(at)elementallogic(dot)com
Cc: Zengfa Gao; pgsql-jdbc(at)postgresql(dot)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 >>>
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2002-08-23 18:39:01 | Re: Proper state after insertRow |
Previous Message | Dave Cramer | 2002-08-23 17:38:06 | Re: Proper state after insertRow |