active_record: Quote numeric values compared to string columns.
Merge pull request #9209 from dylanahsmith/3-1-mysql-quote-numeric

[3.1] active_record: Quote numeric values compared to string columns.