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

#raw_connection proxy to master_connection #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TripWar
Copy link

@TripWar TripWar commented Aug 14, 2017

Currently SDP returns nil for #raw_connection of the standard adapter. This makes it incompatible with gems like Upsert (https://github.com/seamusabshere/upsert) due to the fact that Upsert tries to grab the raw_connection so it can skip ActiveRecord when generating queries for the database.

It makes sense to me that the #raw_connection would return the master connection's raw_connection.

The test I wrote is pretty basic, but more than that, the forked gem works with the Upsert gem without any problems.

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.

1 participant