-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-18463 Add AzureDialect and determine SQL Server version based on …
…compatibility level
- Loading branch information
Showing
3 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
hibernate-core/src/main/java/org/hibernate/dialect/AzureSQLServerDialect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.dialect; | ||
|
||
import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo; | ||
|
||
/** | ||
* A {@linkplain Dialect SQL dialect} for Azure SQL Server. | ||
*/ | ||
public class AzureSQLServerDialect extends SQLServerDialect { | ||
|
||
public AzureSQLServerDialect() { | ||
// Azure SQL Server always is the latest version, so default to a high number | ||
super( DatabaseVersion.make( Integer.MAX_VALUE ) ); | ||
} | ||
|
||
public AzureSQLServerDialect(DialectResolutionInfo info) { | ||
this(); | ||
registerKeywords( info ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters