This issue is related to HHH-4825, but, here, a collection key and element column alias are the same.
The fix for HHH-4825 appends the collection owner's table number when generating the collection key aliases. The fix for this issue is to append the collection table number when generating the collection element aliases.
By using a table number for the collection key aliases that is different from the table number used for collection key elements, the aliases cannot collide.
|