> In my code, there are quite a number of spots where I
> directly read a one-row response like follows:
>
> ---------------------------------------------------
> ResultSet rs = stmt.execute(sql);
>
> String userId = rs.getString("userid");
> String status = rs.getString("accountStatus");
> ----------------------------------------------------
>
> Now, this won't work anymore because there is now a position 'before' and
> 'after' the result set implemented in the new mm.mysql driver.
>
> Does anyone have any idea how I could fix this without having to rewrite all
> of my applications? Or do I really have to put ALL these within
> while(rs.next()){} loops?
>
I put them inside if (rs.next()) conditionals, though I'm sure that's
not what you are looking for. Or outside if (!rs.next()) conditionals.
It does give one a chance to check the corner cases.
-Cris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]