Skip to content

Commit

Permalink
refactor: Simplify logic for ArraySlice creation in slice function
Browse files Browse the repository at this point in the history
  • Loading branch information
joc-a committed Feb 29, 2024
1 parent c3620bd commit 1742b95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ infix operator fun <E, T : List<E>?> ExpressionWithColumnType<T>.get(index: Int)
* @sample org.jetbrains.exposed.sql.tests.shared.types.ArrayColumnTypeTests.testSelectUsingArraySlice
*/
fun <E, T : List<E>?> ExpressionWithColumnType<T>.slice(lower: Int? = null, upper: Int? = null): ArraySlice<E, T> =
ArraySlice(this, lower, upper, ArrayColumnType((this.columnType as ArrayColumnType).delegate))
ArraySlice(this, lower, upper, this.columnType as ArrayColumnType)

// Sequence Manipulation Functions

Expand Down

0 comments on commit 1742b95

Please sign in to comment.