Skip to content

Commit

Permalink
Incorrect noInList #1490
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapac committed Apr 19, 2022
1 parent c48fc6b commit 0393a0f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ interface ISqlExpressionBuilder {
/** Checks if this expression is not equals to any element from [list]. */
@Suppress("UNCHECKED_CAST")
@JvmName("notInListIds")
infix fun <T : Comparable<T>> Column<EntityID<T>>.notInList(list: Iterable<T>): InListOrNotInListBaseOp<EntityID<T>> {
infix fun <T : Comparable<T>, ID: EntityID<T>?> Column<ID>.notInList(list: Iterable<T>): InListOrNotInListBaseOp<EntityID<T>?> {
val idTable = (columnType as EntityIDColumnType<T>).idColumn.table as IdTable<T>
return notInList(list.map { EntityIDFunctionProvider.createEntityID(it, idTable) })
return SingleValueInListOp(this, list.map { EntityIDFunctionProvider.createEntityID(it, idTable) }, isInList = false)
}

// Misc.
Expand Down

0 comments on commit 0393a0f

Please sign in to comment.