-
Notifications
You must be signed in to change notification settings - Fork 549
default_file option is ignored if added to Client.default_query_options #493
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
Comments
The README shows how to set the flag in the connect options hash. |
Yes, it works correctly if you set it in the connect options hash. It See "Cascading configs" section of these are the defaults all Mysql2::Client instancesinheritMysql2::Client.default_query_options.merge!(:as => :array) On Tue, Mar 4, 2014 at 5:33 PM, Aaron Stone [email protected]:
|
Is there a fix that you would like to see here, either to the docs or the code? |
Is there a way to set a default_file to be used for all connections and all I added this line "opts = @query_options" after "@query_options.merge! On Tue, Mar 4, 2014 at 6:20 PM, Aaron Stone [email protected]:
|
I do not recommend using this method of configuring future instances of Mysql2::Client. Keep your own hash of connection options and use it when you create a connection instance. |
This can be fixed by using the '@query_options' hash rather than the 'opts' hash in the options/symbols loop following 'initialize_ext' in Client#initialize.
Presumably this problem exists for other options if they are specified in Client.default_query_options as well.
The text was updated successfully, but these errors were encountered: