On Mon, 12 Feb 2001, Randy Layman wrote:

>
>> ---------------------------------------------------
>> ResultSet rs = stmt.execute(sql);
>>
>> String userId = rs.getString("userid");
>> String status = rs.getString("accountStatus");
> ----------------------------------------------------
>
>       Your code snippet really shouldn't have worked.  The fact that it
> did looks to be a bug in the 1.x drivers.
>
>       You might be able to write some form of script that looks for
> ResultSet rs =  and then add rs.next() on the next line.  Not the best
> solution and it won't get all of your code, but its a place to start.

You would also want to check the return value of rs.next() to be sure
there is actually something there! (Read The Friendly Manual on
rs.next() if you are confused.)

Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
-------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to