From 03586f3b7b4dac80568eddd62c1590dfbb6f7038 Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Mon, 7 Apr 2014 11:09:40 -0400 Subject: [PATCH] HHH-9103 Dialect resolver should use a newer Oracle dialect for Oracle12c --- .../jdbc/dialect/internal/StandardDialectResolver.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/dialect/internal/StandardDialectResolver.java b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/dialect/internal/StandardDialectResolver.java index 242648f596..58eaa34ca0 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/dialect/internal/StandardDialectResolver.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/dialect/internal/StandardDialectResolver.java @@ -195,8 +195,10 @@ public class StandardDialectResolver implements DialectResolver { final int majorVersion = info.getDatabaseMajorVersion(); switch ( majorVersion ) { + case 12: + // fall through case 11: - return new Oracle10gDialect(); + // fall through case 10: return new Oracle10gDialect(); case 9: @@ -206,6 +208,7 @@ public class StandardDialectResolver implements DialectResolver { default: LOG.unknownOracleVersion( majorVersion ); } + return new Oracle8iDialect(); } if ( "HDB".equals( databaseName ) ) {