Subject | RE: [Spam 4,00] Re: [Firebird-Java] fetching autogenerated index |
---|---|
Author | Simeon Mitev |
Post date | 2010-03-24T12:14:21Z |
Thank you Mark!
I will use a select statement in order to get the next id from the
corresponding sequence generator and wait for the 2.2 jaybird release :-)
getGeneratedKeys() is an optional JDBC 3.0 feature, the only way in which
Jaybird is not compliant to the JDBC standard is that it is throwing the
wrong Exception (should be a SQLFeatureNotSupportedException).
Mark
--
GMX.at - Österreichs FreeMail-Dienst mit über 2 Mio Mitgliedern
E-Mail, SMS & mehr! Kostenlos: http://portal.
<http://portal.gmx.net/de/go/atfreemail> gmx.net/de/go/atfreemail
[Non-text portions of this message have been removed]
I will use a select statement in order to get the next id from the
corresponding sequence generator and wait for the 2.2 jaybird release :-)
> org.springframework.jdbc.UncategorizedSQLException:AFAIK getGeneratedKeys() will be(/is) implemented in Jaybird 2.2. The
> PreparedStatementCallback; uncategorized SQLException for SQL []; SQL
> state [HY000]; error code [-50000]; Not yet implemented.; nested
> exception is java.sql.SQLException: Not yet implemented.
>
> Could it be that the driver is not fully JDBC 3.0 standard compatible?
getGeneratedKeys() is an optional JDBC 3.0 feature, the only way in which
Jaybird is not compliant to the JDBC standard is that it is throwing the
wrong Exception (should be a SQLFeatureNotSupportedException).
Mark
--
GMX.at - Österreichs FreeMail-Dienst mit über 2 Mio Mitgliedern
E-Mail, SMS & mehr! Kostenlos: http://portal.
<http://portal.gmx.net/de/go/atfreemail> gmx.net/de/go/atfreemail
[Non-text portions of this message have been removed]