Unify boolean quoting for Mysql- and Mysql2Adapter.

This issue was raised with #11119. Fixed with #11120 and later reverted to prevent possible backward incompatible changes.

Since then I've written a bunch of test-cases to illustrate the behavior of `Mysql2Adapter`s quoting and to reason about consequences of the patch.