mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-9044 formatting, minor fixes
This commit is contained in:
parent
1e5444f07d
commit
ac648cec15
@ -121,7 +121,7 @@ public PreparedStatement prepareStatement(String sql, final int autoGeneratedKey
|
||||
jdbcCoordinator.executeBatch();
|
||||
return new StatementPreparationTemplate( sql ) {
|
||||
public PreparedStatement doPrepare() throws SQLException {
|
||||
return connection().prepareStatement( sql, new int[]{ 1 } );
|
||||
return connection().prepareStatement( sql, autoGeneratedKeys );
|
||||
}
|
||||
}.prepareStatement();
|
||||
}
|
||||
|
@ -119,10 +119,11 @@ public static Serializable get(ResultSet rs, String identifier, Type type) throw
|
||||
}
|
||||
}
|
||||
int columnCount = 1;
|
||||
try{
|
||||
try {
|
||||
columnCount = rs.getMetaData().getColumnCount();
|
||||
}catch(Exception e){
|
||||
//Oracle driver will throw NPE
|
||||
}
|
||||
catch (Exception e) {
|
||||
// Oracle driver can throw NPE on rs.getMetaData()
|
||||
}
|
||||
Class clazz = type.getReturnedClass();
|
||||
if (columnCount == 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user