Wrong column name in Column.getReferences()
when dealing with composite REFBACK
#4564
Open
1 task done
Labels
bug
Something isn't working
Have you checked if this issue already exists?
Molgenis EMX2 version
Software version: v11.40.0-SNAPSHOT. Database version: 23.
Description
When I try to retrieve the reference column names for a composite refback, the given column names do not match the actually retrieved column names through
Query.retrieveRows()
. In contrary toREF_ARRAY
, a refback uses a different separator for composite keys (.
vs-
).Reproduction steps
This test should not fail:
Currently it returns:
Expected behaviour
While it is debatable whether
getReferences()
is incorrect or the given column names byQuery
, fact is that they do not match while expected would be thatgetReferences().getNames()
should allow for retrieving the columns belonging to a composite foreign key.System configuration
No response
The text was updated successfully, but these errors were encountered: