HHH-9044 - Create Oracle12cDialect

This commit is contained in:
Steve Ebersole 2015-03-10 21:38:51 -05:00
parent 73a88ff65c
commit 11095e709d
1 changed files with 4 additions and 2 deletions

View File

@ -119,11 +119,13 @@ public final class IdentifierGeneratorHelper {
} }
} }
int columnCount = 1; int columnCount = 1;
try{ try {
columnCount = rs.getMetaData().getColumnCount(); columnCount = rs.getMetaData().getColumnCount();
}catch(Exception e){ }
catch(Exception e){
//Oracle driver will throw NPE //Oracle driver will throw NPE
} }
Class clazz = type.getReturnedClass(); Class clazz = type.getReturnedClass();
if (columnCount == 1) { if (columnCount == 1) {
if ( clazz == Long.class ) { if ( clazz == Long.class ) {