File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 38
38
import org .hibernate .query .sqm .CastType ;
39
39
import org .hibernate .query .sqm .IntervalType ;
40
40
import org .hibernate .query .sqm .function .SqmFunctionRegistry ;
41
+ import org .hibernate .query .sqm .produce .function .StandardFunctionArgumentTypeResolvers ;
41
42
import org .hibernate .type .BasicType ;
42
43
import org .hibernate .type .descriptor .jdbc .VarcharUUIDJdbcType ;
43
44
import org .hibernate .dialect .function .CaseLeastGreatestEmulation ;
@@ -391,6 +392,12 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio
391
392
392
393
functionRegistry .register ( "overlay" ,
393
394
new InsertSubstringOverlayEmulation ( typeConfiguration , true ) );
395
+
396
+ functionRegistry .namedDescriptorBuilder ( "coalesce" )
397
+ .setMinArgumentCount ( 1 )
398
+ .setArgumentRenderingMode ( SqlAstNodeRenderingMode .INLINE_PARAMETERS )
399
+ .setArgumentTypeResolver ( StandardFunctionArgumentTypeResolvers .ARGUMENT_OR_IMPLIED_RESULT_TYPE )
400
+ .register ();
394
401
}
395
402
396
403
@ Override
You can’t perform that action at this time.
0 commit comments