[hibernate-commits] [hibernate/hibernate-orm] 01430c: HHH-9570: Auto-detect SQL Server 2014

GitHub noreply at github.com
Mon Apr 25 10:55:22 EDT 2016


  Branch: refs/heads/5.1
  Home:   https://github.com/hibernate/hibernate-orm
  Commit: 01430c5be1455fbe3dd22705ecc34f848578c667
      https://github.com/hibernate/hibernate-orm/commit/01430c5be1455fbe3dd22705ecc34f848578c667
  Author: Gustavo Adolfo Rodríguez Libreros <gustavo.adolfo.rodriguez.l at gmail.com>
  Date:   2016-04-25 (Mon, 25 Apr 2016)

  Changed paths:
    M build.gradle
    M databases.gradle
    M hibernate-core/src/main/java/org/hibernate/engine/jdbc/dialect/internal/StandardDialectResolver.java
    M hibernate-core/src/test/java/org/hibernate/engine/jdbc/dialect/internal/StandardDialectResolverTest.java
    M libraries.gradle

  Log Message:
  -----------
  HHH-9570: Auto-detect SQL Server 2014

Copying a previous workaround for the same issue: https://github.com/hibernate/hibernate-orm/pull/395

- Previously, SQL Server version 12 (SQL Server 2014) was an unknown version, resulting in the SQLServerDialect
- Add version 12 to the switch statement so that SQLServer2012Dialect  is now returned by default, as SQL Server 2014 is much more similar to SQL Server 2012 than SQL Server 2000
- Add test case
- Add Oracle and SQL Server environments for testing purpose




More information about the hibernate-commits mailing list