> irb
irb> require 'mysql'
If it works, you've got the compiled version, if it throws an exception, you don't. That's how Rails itself checks for it.
-- Josh H.
On 9/4/06, Jan Svitok <[EMAIL PROTECTED]> wrote:
On 9/3/06, Paul Butcher <[EMAIL PROTECTED]> wrote:
> Please forgive the stupid question, but how does one tell whether one is
> using the mysql compiled gem or not? I've installed it, apparently
> successfully, but I'd feel happier if I could be certain that Rails was
> using it...
General procedure without really knowing too much about the drivers ;-) : either
- try running coverage, to see which of them gets executed (probably
too slow, too much work)
- look at both versions to spot some differences in e.g. private
method names and check it in your code.
- try induce some exception in the mysql code and check the stack trace.
- examine caller() inside a block called from some mysql stuff
- the easiest one: look for some VERSION constant or similar thing.
_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users
_______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users