Re: Fwd: Exception in thread "main" - Mailing list pgsql-jdbc

From Toby Doig
Subject Re: Fwd: Exception in thread "main"
Date
Msg-id 20021007123138.L70448-100000@plum.flirble.org
Whole thread Raw
In response to Fwd: Exception in thread "main"  (Mathew McBride <matt@mcbridematt.dhs.org>)
List pgsql-jdbc
>     ResultSet rs = st.executeQuery();
>     add(name);
>     add(va);
>     va.setText(rs.getString("va_vairline"));

you need to do an rs.next() first to move rs to the first record.
i'd also test whether sexecuteQuery() did actually return a ResultSet and
not null.

toby


pgsql-jdbc by date:

Previous
From: Mathew McBride
Date:
Subject: Exception in thread "main"
Next
From: Felipe Schnack
Date:
Subject: OFF-TOPIC: cvs