inline a redundant variable

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-10-31 13:21:18 +01:00
parent 08f25cf8d9
commit 3c793c7a30
1 changed files with 2 additions and 3 deletions

View File

@ -77,9 +77,8 @@ public class CastFunction extends AbstractSqmSelfRenderingFunctionDescriptor {
renderCastArrayToString( sqlAppender, arguments.get( 0 ), dialect, walker );
}
else {
String cast = dialect.castPattern( sourceType, targetType );
new PatternRenderer( cast ).render( sqlAppender, arguments, walker );
new PatternRenderer( dialect.castPattern( sourceType, targetType ) )
.render( sqlAppender, arguments, walker );
}
}