Subject | Re: only one resultset at a time/statement? |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-04-18T16:02:49Z |
> when trying to get the resultset for my prepared statement, I get theSee documentation to java.sql.Statement.getResultSet():
> following exception:
>
> org.firebirdsql.jdbc.FBSQLException: Only one resultset at a
> time/statement.
> at org.firebirdsql.jdbc.AbstractStatement.getResultSet(
> AbstractStatement.java:531)
>
> what happened?
public ResultSet getResultSet()
throws SQLException
Retrieves the current result as a ResultSet object. This method should
be called only once per result.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Returns:
the current result as a ResultSet object or null if the result is
an update count or there are no more results
Throws:
SQLException - if a database access error occurs
See Also:
execute(java.lang.String)
Roman