Subject | Re: [Firebird-Java] getUpdateCount Problem |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-12-21T16:28:41Z |
> Anyway, i dont know if this is a bug in AbstractStatement or a badGood question. I suspect this is not cleanly specified. JDBC specification
> usage we do.
uses
int rowCount = stmt.executeUpdate();
or
boolean hasRs = stmt.execute();
if (!hasRs) {
int rowCount = stmt.getUpdateCount();
}
but never
stmt.executeUpdate();
int rowCount = stmt.getUpdateCount();
So, the current implementation is my personal interpretation of the
specification. Can anybody say anything from the experience with other JDBC
drivers/databases?
Roman