|
132 | 132 | import static org.hibernate.type.descriptor.DateTimeUtils.appendAsTimestampWithMillis; |
133 | 133 |
|
134 | 134 | /** |
135 | | - * A dialect for Microsoft SQL Server 2012 and above. |
| 135 | + * A dialect for Microsoft SQL Server 2016 and above. |
136 | 136 | * <p> |
137 | 137 | * Please refer to the |
138 | 138 | * <a href="https://learn.microsoft.com/en-us/sql/t-sql/language-reference">SQL Server documentation</a>. |
139 | 139 | * |
140 | 140 | * @author Gavin King |
141 | 141 | */ |
142 | 142 | public class SQLServerDialect extends AbstractTransactSQLDialect { |
143 | | - private final static DatabaseVersion MINIMUM_VERSION = DatabaseVersion.make( 11, 0 ); |
| 143 | + private final static DatabaseVersion MINIMUM_VERSION = DatabaseVersion.make( 13, 0 ); |
144 | 144 |
|
145 | 145 | /** |
146 | 146 | * NOTE : 2100 is the documented limit supposedly - but in my testing, sending |
@@ -440,20 +440,19 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio |
440 | 440 | functionFactory.windowFunctions(); |
441 | 441 | functionFactory.inverseDistributionOrderedSetAggregates_windowEmulation(); |
442 | 442 | functionFactory.hypotheticalOrderedSetAggregates_windowEmulation(); |
443 | | - if ( getVersion().isSameOrAfter( 13 ) ) { |
444 | | - functionFactory.jsonValue_sqlserver(); |
445 | | - functionFactory.jsonQuery_sqlserver(); |
446 | | - functionFactory.jsonExists_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
447 | | - functionFactory.jsonObject_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
448 | | - functionFactory.jsonArray_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
449 | | - functionFactory.jsonSet_sqlserver(); |
450 | | - functionFactory.jsonRemove_sqlserver(); |
451 | | - functionFactory.jsonReplace_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
452 | | - functionFactory.jsonInsert_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
453 | | - functionFactory.jsonArrayAppend_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
454 | | - functionFactory.jsonArrayInsert_sqlserver(); |
455 | | - functionFactory.jsonTable_sqlserver(); |
456 | | - } |
| 443 | + functionFactory.jsonValue_sqlserver(); |
| 444 | + functionFactory.jsonQuery_sqlserver(); |
| 445 | + functionFactory.jsonExists_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
| 446 | + functionFactory.jsonObject_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
| 447 | + functionFactory.jsonArray_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
| 448 | + functionFactory.jsonSet_sqlserver(); |
| 449 | + functionFactory.jsonRemove_sqlserver(); |
| 450 | + functionFactory.jsonReplace_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
| 451 | + functionFactory.jsonInsert_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
| 452 | + functionFactory.jsonArrayAppend_sqlserver( getVersion().isSameOrAfter( 16 ) ); |
| 453 | + functionFactory.jsonArrayInsert_sqlserver(); |
| 454 | + functionFactory.jsonTable_sqlserver(); |
| 455 | + |
457 | 456 | functionFactory.xmlelement_sqlserver(); |
458 | 457 | functionFactory.xmlcomment_sqlserver(); |
459 | 458 | functionFactory.xmlforest_sqlserver(); |
|
0 commit comments