-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
select_merge regression #4564
Comments
I was doing some experimenting, and interestingly enough, I am able to get this to work if I call the functions in IEx. It seems just not to work in my testing environment. I'll have to do some more digging. |
Can you try removing |
If you meant running |
it might be your test database is empty but whatever is being called in |
The test database is the one controlled by ExUnit so its cleaned up after every test. |
Part of it was removed right after the merge: d1910c4 I'll try to write a test that reproduces the behaviour, and potentially restore these clauses. |
Not able to reproduce here either :) |
From the description it seems it was happening when the left side of the join is Maybe we improved that after Ecto 3.10. @JamesKentDemcon does using the latest Ecto solve the issue? |
Elixir version
1.15.4
Database and Version
MySQL 8.0.40
Ecto Versions
ecto 3.10.3, ecto_sql 3.10.2
Database Adapter and Versions (postgrex, myxql, etc)
myxql 0.6.4
Current behavior
Merging with maps which are nil throws an exception. The example below is taken from #3218, where this problem was initially mentioned. As described, if the translation
t
is missing, an error is thrown.results in the error:
This issue was supposedly solved with #3219. Looking at git blame, the relevant lines were merged.
However, when I look at a git blame of the most recent version of Ecto, the relevant lines are missing and only a subset of the fix is merged.
Expected behavior
I would expect no exception to be thrown as is intended by the fix in #3219.
The text was updated successfully, but these errors were encountered: