>
 > ps I'm surprised "boolean found = rs.next()" works if result set is 
empty.
 > I'd kind of expect a null pointer exception. I always do
 > if (rs != null && rs.next()) {
 >   // assign something
 > }
 > if i'm expecting a single row.

I guess there's a difference between an empty ResultSet and no ResultSet :)

--V.

sorry V but i'm pretty sure that it isn't necessary:

resultset.next() is a method that tries to put the pointer at the first 
element of the resultset. If succesful it returns true, else false. So
found = rs.next() works fine.

TheStijn
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Reply via email to