brianmario/mysql2 — pull request #351 by dylanahsmith (2013-02-07 11:05:07+00:00)
Title: active_record: Delegate BigDecimal quoting to abstract adapter.

## Problem

The abstract connection adapter already supports BigDecimal quoting, so quoting it in the mysql2 adapter is redundant, and prevents proper quoting of BigDecimal numbers being compared to strings as proposed in the rails pull request https://github.com/rails/rails/pull/9207.

## Solution

Remove the case for quoting BigDecimal in the mysql2 adapter and let it be done in the abstract adapter where it is already supported.

source: https://github.com/rails/rails/blob/3-0-stable/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb#L28

This is needed to fix the following test in the backport of the numeric quoting patch to activerecord 3.0.

https://github.com/rails/rails/pull/9210/files#L4R54