diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/Default.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/Default.kt index 974519735a..4d3158e744 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/Default.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/Default.kt @@ -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)"