This commit is contained in:
Ray J. Greenwell
2014-05-02 11:50:41 -07:00
parent a473ff2ef1
commit a641e6c502
@@ -47,7 +47,10 @@ public abstract class BaseLiaison implements DatabaseLiaison
{
// if this JDBC driver supports getGeneratedKeys, use it!
if (istmt != null && conn.getMetaData().supportsGetGeneratedKeys()) {
return istmt.getGeneratedKeys().getInt(column);
ResultSet rs = istmt.getGeneratedKeys();
if (rs.next()) {
return rs.getInt(column);
}
}
return -1;
}