-
Notifications
You must be signed in to change notification settings - Fork 213
Rails 4.2.3 bug #386
Comments
Small update, I haven't been able to investigate more, but what I didn't notice it that it seems to handle the "binding" incorrectly in the sense that not only did it swap the subdomain id value, it actually used the subdomain id for the (boolean) of subdomains.dns_zone and used 1 (dns zone being true) for the subdomains.id in the query. |
Railse 4.2.3 has a rather serious regression, see rails/rails@449241c . You may want to test your code against the rails 4-2-stable branch and see if the issue is fixed. |
I'm encountering a bug that looks rather similar. However, I'm also able to reproduce this specific issue with rails 4.2.2 (and on rails 4-2-stable). The bug goes away when I don't load squeel by removing it (and only it) from my Gemfile. The bug also goes away when I don't do a join. Here's what happens:
It's worth noting that specifying the table on the second where fixes the issue:
Messages is just a
This issue was exposed for me with rails 4.2.3 because the more-abstracted code I have in my app (involving cancancan and a scope) created a more complex SQL query in 4.2.2. That complex query wasn't affected by this issue. |
This seems quite similar to the issue I have in #369 |
We just discovered a bug after upgrading to Rails 4.2.3 in the following scope:
This results in the following:
Whereas it used to (and should) be the following:
Note the part that says
subdomains.id = 6787
versussubdomains.id = 1
More details will follow as I investigate what exactly went wrong.
The text was updated successfully, but these errors were encountered: