File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -371,8 +371,12 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio
371
371
372
372
//coalesce() and nullif() both supported since Informix 12
373
373
374
- functionRegistry .register ( "least" , new CaseLeastGreatestEmulation ( true ) );
375
- functionRegistry .register ( "greatest" , new CaseLeastGreatestEmulation ( false ) );
374
+ // least() and greatest() supported since 12.10
375
+ if ( getVersion ().isBefore ( 12 , 10 ) ) {
376
+ functionRegistry .register ( "least" , new CaseLeastGreatestEmulation ( true ) );
377
+ functionRegistry .register ( "greatest" , new CaseLeastGreatestEmulation ( false ) );
378
+ }
379
+
376
380
functionRegistry .namedDescriptorBuilder ( "matches" )
377
381
.setInvariantType ( stringBasicType )
378
382
.setExactArgumentCount ( 2 )
You can’t perform that action at this time.
0 commit comments