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 3838import org .hibernate .query .sqm .CastType ;
3939import org .hibernate .query .sqm .IntervalType ;
4040import org .hibernate .query .sqm .function .SqmFunctionRegistry ;
41+ import org .hibernate .query .sqm .produce .function .StandardFunctionArgumentTypeResolvers ;
4142import org .hibernate .type .BasicType ;
4243import org .hibernate .type .descriptor .jdbc .VarcharUUIDJdbcType ;
4344import org .hibernate .dialect .function .CaseLeastGreatestEmulation ;
@@ -391,6 +392,12 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio
391392
392393 functionRegistry .register ( "overlay" ,
393394 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 ();
394401 }
395402
396403 @ Override
You can’t perform that action at this time.
0 commit comments