"Unexpected SQLStmt handle in " + this.getClass().getSimpleName() + "\n" + this.name_stmt_xref;
// HACK: If the target system is Postgres, wrap the PreparedStatement in a special
// one that fakes the getGeneratedKeys().
if (is != null && this.dbType == DatabaseType.POSTGRES) {
pStmt = new AutoIncrementPreparedStatement(this.dbType, conn.prepareStatement(stmt.getSQL()));
}
// Everyone else can use the regular getGeneratedKeys() method
else if (is != null) {
pStmt = conn.prepareStatement(stmt.getSQL(), is);
}