Skip to content

Fix hook method that allows custom connection configuration #1039

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

aidanharan
Copy link
Contributor

@aidanharan aidanharan commented Mar 8, 2023

The method configure_connection was meant to be a hook method to allow custom connection configuration. However, the method was implemented in the adapter to perform the default connection configuration. I have extracted the default connection configuration to it's own method so that the hook method is available again for custom configuration.

This allows users to implement configure_connection without having to re-implement the default configuration or call super to call the adapter's implementation of the method.

This fixes issue #950

Note: The fix will later be backported to the 6-1-stable branch.

@aidanharanaidanharan force-pushed the fix-connection-configuration-7.0 branch from 5342202 to 5d7fadc Compare March 8, 2023 16:17
@aidanharanaidanharan marked this pull request as ready for review March 8, 2023 16:38
@aidanharan
Copy link
Contributor Author

@owst Would you be able to review this PR and tell me if it will solve #950 for you? Thanks

@aidanharanaidanharan reopened this Mar 8, 2023
@owst
Copy link

owst commented Mar 8, 2023

The change looks reasonable to me - thanks!

@aidanharanaidanharan merged commit eba58db into main Mar 9, 2023
@aidanharanaidanharan deleted the fix-connection-configuration-7.0 branch March 9, 2023 12:13
aidanharan added a commit that referenced this pull request Mar 9, 2023
…ation-7.0

Fix hook method that allows custom connection configuration
KDGundermann pushed a commit to KDGundermann/activerecord-sqlserver-adapter that referenced this pull request Mar 14, 2023
…ection-configuration-7.0

Fix hook method that allows custom connection configuration
Sign up for free to join this conversation on . Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants