Re: Proper state after insertRow

Поиск
Список
Период
Сортировка
От Paul Stead
Тема Re: Proper state after insertRow
Дата
Msg-id BNENLMOEFCOIEGKDJMLLEEMICBAA.pstead@elementallogic.com
обсуждение исходный текст
Ответ на Re: Proper state after insertRow  (Dave Cramer <Dave@micro-automation.net>)
Ответы Re: Proper state after insertRow
Список 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Proper state after insertRow
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Proper state after insertRow