Subject | Re: ResultSet.first() not supported? |
---|---|
Author | ftaccess |
Post date | 2001-12-19T14:46:34Z |
--- In IB-Java@y..., "davcamer" <dave@n...> wrote:
http://sourceforge.net/projects/firebird
if (rs.next() == false ) {
// result set is empty
} else {
// get the result and process it
}
Fred
> Unfortunately I don't have the sources toThe sources are in the CVS at
> interbase.interclient.ResultSet,
http://sourceforge.net/projects/firebird
>but the spec atThose specs indicate "JDBC 2, NOT YET SUPPORTED" for that method
> http://www.aoindustries.com/docs/interclient/specifications/
> certainly gave me the impression that ResultSet.first() was
> supported.
> ResultSet rs = stmt.executeQuery("SELECT * FROM MESSAGE_WAIT");Try something along the lines of:
> if (rs.first() == false){
if (rs.next() == false ) {
// result set is empty
} else {
// get the result and process it
}
Fred