Skip to content

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