aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDylan Smith <Dylan.Smith@shopify.com>2013-02-13 14:37:51 -0500
committerDylan Thacker-Smith <Dylan.Smith@shopify.com>2014-04-28 03:10:47 -0400
commit1a2bf3df0e3350142d36a51d351ed38523b9f63c (patch)
tree435f45b71a5f9ca16710e8efae924ff164b363f8 /lib
parentde916331c3536db839f844034176bf321d94efa7 (diff)
downloadrails-1a2bf3df0e3350142d36a51d351ed38523b9f63c.tar.gz
rails-1a2bf3df0e3350142d36a51d351ed38523b9f63c.tar.bz2
rails-1a2bf3df0e3350142d36a51d351ed38523b9f63c.zip
Test quoting integers when comparing a string column with integers.
An equality with a string column and integer like SELECT * FROM `users` WHERE `login_token` = 0 LIMIT 1; will match match any string that doesn't start with a digit in certain databases, like mysql. Make sure we quote the integer to avoid this problem in a database independant way.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions