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

fix: _insert_record failed for other adapters #298

Merged
merged 5 commits into from
Feb 5, 2024
Merged

fix: _insert_record failed for other adapters #298

merged 5 commits into from
Feb 5, 2024

Conversation

olavloite
Copy link
Collaborator

@olavloite olavloite commented Jan 23, 2024

The _insert_record method would fail for adapters other than Spanner, as it would call super with two arguments. This is now changed so the method checks whether the current connection uses Spanner or some other adapter, and based on that calls the super method with 1 or 2 arguments.

Fixes #292
Also fixes the issue mentioned in #294

The _insert_record method would fail for adapters other than Spanner,
as it would call super with two arguments. This is now changed so the
method checks whether the current connection uses Spanner or some other
adapter, and based on that calls the super method with 1 or 2 arguments.

Fixes #292
@olavloite olavloite requested a review from a team as a code owner January 23, 2024 11:27
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/ruby-spanner-activerecord API. label Jan 23, 2024
@olavloite olavloite merged commit 3ccd63a into main Feb 5, 2024
35 checks passed
@olavloite olavloite deleted the issue-292 branch February 5, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/ruby-spanner-activerecord API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.6.0 violates Rails < 7.1 internal API for base _insert_record method.
1 participant