Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tentatively support mysql2 (pending a pull-request, really)
- Loading branch information
osheroff
committed
Mar 7, 2012
1 parent
07cecee
commit 04218a3
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
04218a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@osheroff which pull request? :-D
It seems that Rails 3.2 is not too fond of mysql -
explain
, which is automatically called on slow queries, breaks:04218a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yah.
Mysql2 dude accepted my pull-request. So if you use the HEAD of mysql2 and active_record_host_pool 0.6.1, you should be good to go.
04218a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It still doesn't run - it seems that
mysql
is being required inlib/active_record_host_pool/connection_adapter_mixin.rb
.04218a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're running active_record_host_pool at the git sha of 50d0b87, but you need to be running the rubygems version @ 0.6.1
04218a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still got the same problem - host_pool is trying to load the
mysql
gem, which is no longer present in my Gemfile.04218a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
k, can you try bec2439 and see?
04218a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried again, running ARHP 0.6.2, got this:
04218a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to use the HEAD of mysql2 - it works now! Wunderbar!