-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlBatch junction column name conflict #245
Comments
Commenting for visibility - experienced this exact same bug today. EDIT : I think I might have solved a similar but different issue. |
a workaround we've found for this is to define the unique key as a composite of itself: This will add the unique key to the query as
Thus working around the conflict |
The |
Can you provide a https://github.com/join-monster/join-monster-sscce? |
When doing a junction sqlBatch, the column aliases assigned by JM can conflict, causing hydration to fail.
Eg.
doing a selection on this results in this sql:
as you can see in the batched SQL statement,
one
.id
is aliased asid
, so doesjunction_t
.id
. So when the data is hydrated, it ignores the junction table id column because it gets overwritten by the join table id column.The text was updated successfully, but these errors were encountered: