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

Rails 6 support #690

Merged
merged 102 commits into from
May 7, 2020
Merged

Rails 6 support #690

merged 102 commits into from
May 7, 2020

Conversation

wpolicarpo
Copy link
Member

@wpolicarpo wpolicarpo commented Mar 20, 2019

This is a WIP pull request to bring Rails 6 changes to SQL Server adapter.

O lot of people asked how they can help and what are the failing tests we should fix to have a stable version. Best thing to do is to check the latest Travis build for this branch, see what is failing and then open a PR for this branch.

@wpolicarpo wpolicarpo mentioned this pull request May 19, 2019
wpolicarpo and others added 6 commits March 25, 2020 16:36
Adapt to changed method signature in Rails 6.0.
Remove SQLite versioning

Set to use Rails 6.0.0
Rails 6: Fix for translate_exception method signature
@robikovacs
Copy link

Hey @wpolicarpo

Do you need help with this PR? Let me know how I can help.

Cheers,
Robi

@wpolicarpo
Copy link
Member Author

@robikovacs any help is welcome here, yes. We have @aidanharan currently working on having all the tests passing and some other initiatives already started as PRs.

Maybe we can build a list of failing tests and tackle them one by one (or by groups if it's more relevant).

wpolicarpo and others added 10 commits April 29, 2020 10:10
Rails 6: Coerce tests as SQL Server does not return string value for updated_at
* Coerce test as time has default precision

* Fixed typo
* Support lazy transactions

* aaded materialize_transactions guard to connection uses.
for implementing supports for lazy transactions rails/rails#32647 (comment)

* Moved materialize_transactions calls

* Fix typo

* Materialize transaction in do_execute

Co-authored-by: Yehuda Goldberg <[email protected]>
…#788)

The transaction in the test become SavepointTransaction  because tests automatically wrapped in transaction,
and SQL Server does not have query for release_savepoint
* add database_exists?
rails/rails#36471

* fix translate error to ActiveRecord::NoDatabaseError in connection creating
add "test bad connection" like other adapters
* Use same sqlite3 and pg versions as Rails 6.0.2.2

* Bump to version used by CI

* Revert version
* Coerce test to managable number of records

* Assert that unprepared statement being used

* Updated test

* Fix test
This was referenced May 5, 2020
@wpolicarpo wpolicarpo marked this pull request as ready for review May 7, 2020 18:22
@wpolicarpo wpolicarpo merged commit dc1baf7 into master May 7, 2020
@wpolicarpo wpolicarpo deleted the 6-0-dev branch May 7, 2020 18:24
@wpolicarpo wpolicarpo changed the title Rails 6 Rails 6 support May 13, 2020
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.

10 participants