-
Notifications
You must be signed in to change notification settings - Fork 549
Pull for issue #233 take two #242
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
Conversation
@sodabrew thank you so much for taking the time to research and package this! @brianmario I can confirm this pull request allowed me to achieve bulk load while using |
This changeset refactors the mysql_options calls to reduce code duplicate, and adds one more option, :local_infile (which would have been a lot of duplicated code until I refactored it). The new option is used like this: |
could you update or resubmit this so it's mergable? |
Conflicts: ext/mysql2/client.h
Merged your latest code, the one conflict was trivial whitespace at the end of the file ext/mysql2/client.h Thanks for looking into my pull! Much appreciated! |
Question on this one for Rails 3.0.x compatibility (which I try to achieve in adapter_extensions): if this one get merged, will there be a release of mysql2 < 0.3 including the fix? |
Yeah I try to push out releases for 0.2.x as well as 0.3.x |
Great to hear :) thanks! |
Just wanted to say that we switched to this fork of mysql2 and it has resolved our local_infile issues as described in greater detail in #43 . Looking forward to mysql2 pulling it in! |
sodabrew, thank you for this one. We forked brianmario, and merged this pull in, and our issues have been resolved as well. |
Cool. I've been pretty busy recently, but per Brian's request I'm going to work on adding some more unit tests to make sure this patch is good to go upstream. |
Conflicts: README.md ext/mysql2/client.c
I cleaned up the code and moved it to a branch. Can't see where to change the branch in this pull request (probably because it has comments on it already?) so I'll open a new pull request. |
(See pull request #252 now.) |
In the previous pull request, I had blown up my repo and it wanted to pull every changeset. Recloned and committed the changesets cleanly.
This adds :local_infile as an option to Mysql2::Client.new()
Refactors three calls to mysql_options around a single utility function.
Exposes a wrapper around mysql_options as a Client instance method.