Skip to content

Conversation

@kubo
Copy link
Contributor

@kubo kubo commented Jun 11, 2016

This is same feature with Perl DBD-MySQL mysql_conn_attrs option.
http://search.cpan.org/~capttofu/DBD-mysql-4.033/lib/DBD/mysql.pm#mysql_conn_attrs

}

static VALUE rb_connect(VALUE self, VALUE user, VALUE pass, VALUE host, VALUE port, VALUE database, VALUE socket, VALUE flags) {
#if MYSQL_VERSION_ID >= 50606
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer a have-function test on mysql_options4 rather than a version check.

@sodabrew
Copy link
Collaborator

This looks awesome, thank you for the contribution! Review comments added.

@sodabrew sodabrew added this to the 0.5.0 milestone Jun 11, 2016
@kubo
Copy link
Contributor Author

kubo commented Jun 11, 2016

I changed the code as you commented.

sodabrew pushed a commit to sodabrew/mysql2 that referenced this pull request Nov 25, 2017
sodabrew pushed a commit to sodabrew/mysql2 that referenced this pull request Nov 25, 2017
sodabrew pushed a commit to sodabrew/mysql2 that referenced this pull request Nov 25, 2017
sodabrew pushed a commit to sodabrew/mysql2 that referenced this pull request Nov 25, 2017
@sodabrew
Copy link
Collaborator

sodabrew commented Nov 25, 2017

Merged as 8d557b0

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.

2 participants