Skip to content

Rails 6.1 fixes: Use renamed connection_config method and rewrite coerced tests using unsafe raw SQL #882

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

Conversation

mgrunberg
Copy link
Contributor

This PR contains two fixes:

  1. ARTest.connfiguration_config was renamed (see Rename a test method to not conflict with a deprecated method rails/rails#38007)
  2. Rewrite UnsafeRawSqlTest coerced tests because unsafe raw SQL support was removed (see rails/rails@317465a)

Support for using unsafe raw SQL in `ActiveRecord::Relation` methods has
been removed. See
rails/rails@317465a
@wpolicarpo
Copy link
Member

Thanks for the contribution.

@wpolicarpo wpolicarpo merged commit d67c2f6 into rails-sqlserver:main Apr 17, 2021
@mgrunberg mgrunberg deleted the issues/yellowspot/rails-6-1/use-renamed-connection-config-and-rewrite-coerced-tests branch January 3, 2022 17:33
lavika pushed a commit to lavika/activerecord-sqlserver-adapter that referenced this pull request Sep 26, 2023
…rced tests using unsafe raw SQL (rails-sqlserver#882)

* Use renamed ARTest.connfiguration_config method

See more: rails/rails#38007

* rewrite coerced specs using unsafe raw SQL

Support for using unsafe raw SQL in `ActiveRecord::Relation` methods has
been removed. See
rails/rails@317465a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants