Postgres 7.3b1 + pg73b1jdbc3 rs.last() error

From: Laurentiu Drob <lwd(at)cfrcta(dot)ro>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Postgres 7.3b1 + pg73b1jdbc3 rs.last() error
Date: 2002-09-20 19:19:10
Message-ID: 3D8B74AE.5050104@cfrcta.ro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Greetings,

I have a problem running the following code:
...
rs = st.executeQuery("SELECT * FROM foo");
...
rs.last();

I get:
Exception in thread "main" java.lang.NullPointerException
at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.last(AbstractJdbc2ResultSet.java:414)
at tjdbc.main(tjdbc.java:53)

The table foo has one record;

JAVA is:
java version "1.4.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

JDBC driver is: pg73b1jdbc3.jar

Many thanks for your suggestions!

Best regards,
lwd.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jeff Hoffmann 2002-09-21 03:39:29 Binary Cursors (& Geometric Type Support)
Previous Message Kris Jurka 2002-09-20 05:19:46 Re: JDBC Driver - Schema Awareness