Skip to content

Commit

Permalink
Remove unnecessary parentheses for functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxr1998 committed Dec 1, 2022
1 parent c6cf379 commit dcdf123
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ abstract class DataTypeProvider {
/** Returns the SQL representation of the specified expression, for it to be used as a column default value. */
open fun processForDefaultValue(e: Expression<*>): String = when {
e is LiteralOp<*> -> "$e"
e is Function<*> -> "$e"
currentDialect is MysqlDialect -> "$e"
currentDialect is SQLServerDialect -> "$e"
else -> "($e)"
Expand Down

0 comments on commit dcdf123

Please sign in to comment.