Skip to content
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

HasOneThroughDisableJoinsAssociationsTest: Use to support matching SQL of any adapter #44051

Merged

Conversation

mgrunberg
Copy link
Contributor

Summary

HasOneThroughDisableJoinsAssociationsTest assert SQL generated but
doesn't handle SQL Server (quotes with []).

SQL Server adapter
(https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/) need to be coerced and re-implemented that test
(rails-sqlserver/activerecord-sqlserver-adapter#975)

This PR changes the test to handle all adapters.

`HasOneThroughDisableJoinsAssociationsTest` assert SQL generated but
doesn't handle SQL Server (quotes with `[]`).

SQL Server adapter
(https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/) need to coerced and re-implemented that test
(rails-sqlserver/activerecord-sqlserver-adapter#975)

This PR changes the test to handle all adapters.
@kamipo kamipo merged commit faee1fe into rails:main Jan 3, 2022
@mgrunberg mgrunberg deleted the has-one-through-disable-joins-associations-test branch January 3, 2022 17:31
@yahonda
Copy link
Member

yahonda commented Jan 3, 2022

This test has been failing with all bundled adapters. Here is the link to mysql2 one. https://buildkite.com/rails/rails/builds/83731#724040f0-8208-40b8-bd25-593dd022b79e/1079-1092

@mgrunberg
Copy link
Contributor Author

Thanks for the notification and sorry for the mistake. #44058 should fix the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants