Skip to content

Commit f3c9d82

Browse files
authored
fix: added inheritance join to column in subquery (#4966)
* added inheritance join where column in subquery * fix: changed inheritance join to root table select
1 parent 5ffd279 commit f3c9d82

File tree

1 file changed

+1
-1
lines changed
  • backend/molgenis-emx2-sql/src/main/java/org/molgenis/emx2/sql

1 file changed

+1
-1
lines changed

backend/molgenis-emx2-sql/src/main/java/org/molgenis/emx2/sql/SqlQuery.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ private Condition whereColumnInSubquery(Column c, SelectSelectStep subQuery) {
15951595
return row(pkey)
15961596
.in(
15971597
DSL.select(backRef)
1598-
.from(c.getRefTable().getJooqTable())
1598+
.from(c.getRefTable().getRootTable().getJooqTable())
15991599
.where(row(backRefKey).in(subQuery)));
16001600
} else {
16011601
// ref_array

0 commit comments

Comments
 (0)