[ 
http://issues.apache.org/jira/browse/IBATIS-142?page=comments#action_12459558 ] 
            
Niels Beekman commented on IBATIS-142:
--------------------------------------

In theory, this could be implemented since 1.4 is default now. However, not all 
DBMS drivers support this, for example the PostgreSQL driver doesn't. I've been 
using it succesfully with the JTDS MSSQL driver. To overcome hardcoding 
database-specific code, we usually put all auto-increment columns in a 
properties file, which we fill for each supported DBMS.

> JDBC 3 Generated Keys Support
> -----------------------------
>
>                 Key: IBATIS-142
>                 URL: http://issues.apache.org/jira/browse/IBATIS-142
>             Project: iBatis for Java
>          Issue Type: Improvement
>          Components: SQL Maps
>            Reporter: Brandon Goodin
>            Priority: Minor
>
> public int executeUpdate(String sql,int autoGeneratedKeys)
> public boolean execute(String sql,int autoGeneratedKeys)
> public ResultSet getGeneratedKeys()
> We should provide support for jdbc auto generated keys retrieval. This is 
> only available in Java 1.4. So, we would have to throw an 
> UnsupportedFeatureException if 1.3 or earlier was being used.
> Brandon

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to