On Sat, 29 May 1999, Noah Nordrum wrote:

>    stmt = (Statement)con.createStatement();
>    rs   = (ResultSet)stmt.executeQuery(queryString);
>    if (rs.getString("name") == null) // <--------- Bombs out right here

I usually place an 'rs.next()' before the first rs.getXXX.
I don't remember if that is the spec, but ever since I started
doing JDBC I always have

if (rs.next()) {...}

or 

while (rs.next()) {...}

Are you going to f**k me now :-) ?

----------------------------------------------
Guglielmo Lichtner              (212) 799-2551

"Your quote here."
- B.Stroustrup




-- --------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to