Subject | Re: [Firebird-Java] Using queries to Firebird methods |
---|---|
Author | Roman Rokytskyy |
Post date | 2008-05-23T09:29:07Z |
> But it may be my mistake as I don't sure how to get the value whichYou should use ResultSet.next() instead of first(). The first() method
> the ResultSet is likely containing now.
>
> I wrote
> if(rs.first()) someVariable = rs.getInt(1);
should be used for scrollable result sets, which you have to construct
explicitly. AFAIK, this is requirement from the JDBC specification.
Probably the error message could be better...
Roman