Subject | This code worked in 1.5.5... but it doesn't in 2.0.1 |
---|---|
Author | Edilmar |
Post date | 2006-03-30T19:03:20Z |
// the line below doesn't attrib the result of executeQuery to a
ResultSet object
stmtHTML.executeQuery("Select Cod, Nome From Cliente Order By Nome");
// a generic method... used in many places and systems
GeralHTML.PreencheComboBoxCodDesc(stmtHTML);
and into PreencheComboBoxCodDesc method, I have this code:
ResultSet rs = stmt.getResultSet();
I can't change the method to pass a ResultSet rather than a Statement
because this generic method is used in many places and systems...
org.firebirdsql.jdbc.FBSQLException: Only one resultset at a time/statement.
at
org.firebirdsql.jdbc.AbstractStatement.getResultSet(AbstractStatement.java:601)
at
org.firebirdsql.jdbc.AbstractStatement.getResultSet(AbstractStatement.java:589)
at SubMacroUtils.GeralHTML.PreencheComboBoxTipoCodDesc(GeralHTML.java:806)
How to solve this?
ResultSet object
stmtHTML.executeQuery("Select Cod, Nome From Cliente Order By Nome");
// a generic method... used in many places and systems
GeralHTML.PreencheComboBoxCodDesc(stmtHTML);
and into PreencheComboBoxCodDesc method, I have this code:
ResultSet rs = stmt.getResultSet();
I can't change the method to pass a ResultSet rather than a Statement
because this generic method is used in many places and systems...
org.firebirdsql.jdbc.FBSQLException: Only one resultset at a time/statement.
at
org.firebirdsql.jdbc.AbstractStatement.getResultSet(AbstractStatement.java:601)
at
org.firebirdsql.jdbc.AbstractStatement.getResultSet(AbstractStatement.java:589)
at SubMacroUtils.GeralHTML.PreencheComboBoxTipoCodDesc(GeralHTML.java:806)
How to solve this?