mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
1a2bf3df0e
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. |
||
---|---|---|
.. | ||
attributes | ||
collectors | ||
nodes | ||
support | ||
visitors | ||
helper.rb | ||
test_attributes.rb | ||
test_crud.rb | ||
test_delete_manager.rb | ||
test_factory_methods.rb | ||
test_insert_manager.rb | ||
test_select_manager.rb | ||
test_table.rb | ||
test_update_manager.rb |