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

Separate out connect options from query options #507

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sodabrew
Copy link
Collaborator

An idea to resolve the confusing situation seen in #493 and a few previous tickets.

First pass code has the bad effect of overriding the user's settings with defaults if the user changes the class hash values in @@default_query_options before connecting, but has not updated to know about @@default_connect_options introduced here.

Retains the bad situation of having both sets of options in the @query_options hash from there on out.

Needs some more thinking, putting this out for comment and ideas.

@sodabrew sodabrew added this to the 0.4.0 milestone Feb 8, 2015
@sodabrew
Copy link
Collaborator Author

Picking this up now for 0.4.0. It will also clarify the situation described in #437.

@@ -1,71 +1,69 @@
module Mysql2
class Client
attr_reader :query_options, :read_timeout
attr_reader :connect_optins, :query_options, :read_timeout
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@sodabrew sodabrew force-pushed the connect_options branch 3 times, most recently from be8a727 to 61d7088 Compare February 26, 2015 02:31
@sodabrew sodabrew changed the title First pass at separating out connect options from query options Separate out connect options from query options Feb 26, 2015
@sodabrew sodabrew modified the milestones: 0.4.0, 0.5.0 Aug 5, 2015
@sodabrew sodabrew modified the milestones: 0.5.0, 0.6.0 Mar 19, 2018
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