Changeset 3543

Show
Ignore:
Timestamp:
02/10/10 13:04:04 (6 months ago)
Author:
Maverick
Message:

Another bugfix for the Statement.getGeneratedKeys() which required Statement.RETURN_GENERATED_KEYS on Statement.execute().

The following error was shown in the logs:

java.sql.SQLException: Generated keys not requested. You need to specify Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate() or Connection.prepareStatement().
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/twcore/src/twcore/core/sql/SQLConnectionPool.java

    r3541 r3543  
    8989            Statement stmt = conn.createStatement(); 
    9090             
    91             stmt.execute( query ); 
     91            stmt.execute( query, Statement.RETURN_GENERATED_KEYS ); 
    9292             
    9393            ResultSet set = stmt.getResultSet();