Skip to content

Commit

Permalink
fix: EXPOSED-565 Subquery alias with id fails to use correct alias wi…
Browse files Browse the repository at this point in the history
…th eq

- Remove unnecessary (this as Column<*>) cast
  • Loading branch information
bog-walk committed Sep 28, 2024
1 parent 381df69 commit d70d45d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ interface ISqlExpressionBuilder {
val table = (columnType as EntityIDColumnType<*>).idColumn.table as IdTable<T>
val entityID = EntityID(t, table)
return if ((this as? Column<*>)?.isEntityIdentifier() == true) {
(this as Column<*>).table.mapIdComparison(entityID, ::EqOp)
this.table.mapIdComparison(entityID, ::EqOp)
} else {
EqOp(this, wrap(entityID))
}
Expand Down Expand Up @@ -382,7 +382,7 @@ interface ISqlExpressionBuilder {
val table = (columnType as EntityIDColumnType<*>).idColumn.table as IdTable<T>
val entityID = EntityID(t, table)
return if ((this as? Column<*>)?.isEntityIdentifier() == true) {
(this as Column<*>).table.mapIdComparison(entityID, ::NeqOp)
this.table.mapIdComparison(entityID, ::NeqOp)
} else {
NeqOp(this, wrap(entityID))
}
Expand Down

0 comments on commit d70d45d

Please sign in to comment.