jeremyevans/sequel — pull request #536 by hannesg (2012-08-16 10:26:24+00:00)
Title: Correctly cache mysql server version

Hi

I came across the following issue: the mysql adapter is constantly requerying the version of the server. I found out that the responsible code does some caching but only for the last step of the computation ( which happens to be the least expensive one, btw. ). I fixed the caching and ran into the next problem: I could not add a spec for it since the server_version is fixed in the mysql_spec after one certain set of tests using meta_def . I added a method which reverts meta_def and added a clean-up code so that later tests get the correct server_version.

Is it okay to leave the two things in one pull request or should I split them up?

Thank you
Hannes