diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/SQLExpressionBuilder.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/SQLExpressionBuilder.kt index cefac37b8c..8b5312a626 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/SQLExpressionBuilder.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/SQLExpressionBuilder.kt @@ -207,7 +207,7 @@ infix operator fun ?> ExpressionWithColumnType.get(index: Int) * @sample org.jetbrains.exposed.sql.tests.shared.types.ArrayColumnTypeTests.testSelectUsingArraySlice */ fun ?> ExpressionWithColumnType.slice(lower: Int? = null, upper: Int? = null): ArraySlice = - ArraySlice(this, lower, upper, ArrayColumnType((this.columnType as ArrayColumnType).delegate)) + ArraySlice(this, lower, upper, this.columnType as ArrayColumnType) // Sequence Manipulation Functions