diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/WindowFunction.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/WindowFunction.kt index 15b72dae18..8b14cb39fd 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/WindowFunction.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/WindowFunction.kt @@ -119,9 +119,9 @@ class WindowFunctionDefinition( +" OVER(" appendPartitionByClause() appendOrderByClause() - if (frameClause != null) { + frameClause?.let { +" " - frameClause!!.toQueryBuilder(this) + it.toQueryBuilder(this) } +")" }