1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/test
Dylan Smith 1a2bf3df0e 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.
2014-04-28 03:10:47 -04:00
..
attributes add the casting node to the AST at build time 2014-03-24 16:26:09 -07:00
collectors add test for sql string collector 2014-04-09 15:20:39 -07:00
nodes fixing BINARY tests 2014-04-08 21:38:19 -07:00
support Test quoting integers when comparing a string column with integers. 2014-04-28 03:10:47 -04:00
visitors Test quoting integers when comparing a string column with integers. 2014-04-28 03:10:47 -04:00
helper.rb bind visitor working with collector object 2014-04-08 12:03:52 -07:00
test_attributes.rb Add equality to ALL THE THINGS (that matter) 2012-08-18 22:33:25 -04:00
test_crud.rb Remove deprecated calls from the tests 2013-12-05 00:18:22 -02:00
test_delete_manager.rb renaming test_helper to helper so that it is not double required 2010-10-18 16:54:50 -07:00
test_factory_methods.rb take in to account quoted and translated values 2014-03-25 10:01:44 -07:00
test_insert_manager.rb Get rid of the visit select hack 2014-04-10 13:52:49 -04:00
test_select_manager.rb more select manager tests passing 2014-04-08 16:39:08 -07:00
test_table.rb Added right and full outer joins 2014-03-30 22:59:16 -05:00
test_update_manager.rb fix one deprecation warning 2013-10-14 19:05:59 -07:00