1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/test
Edward Paget f726dbe080 Delegate to Connection Visitor in WhereSQL Visitor
The WhereSQL visitor always uses the generic ToSQL visitor to create
the where clause sql statement. This means that it'll miss database
specific statements, such as 'ILIKE' in PostgreSQL. Since the
`#where_sql` method is mainly used for ActiveRecord error reporting,
this discrepancy could be confusing to users.

This patch changes the WhereSQL visitor to use the its connection
visitor to generate SQL for each statement in the SelectManager's wheres
array. Then lets them be joined together with ' AND '.
2015-12-17 12:49:50 -07:00
..
attributes Merge pull request #329 from vipulnsward/add-attribute-aggregate-tests 2015-12-17 17:29:30 -02:00
collectors Remove engine from TreeManager and subclasses 2014-11-29 17:22:17 -07:00
nodes Add OrderPredications back into Nodes::Function (removed with deprecation of Expression) 2015-07-23 09:55:59 -04:00
support Test quoting integers when comparing a string column with integers. 2014-04-28 03:10:47 -04:00
visitors Merge pull request #369 from codeodor/patch-1 2015-12-17 17:27:57 -02:00
helper.rb Deprecate automatic type casting within Arel 2014-12-26 18:02:56 -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 Delete should respect 'limit' 2015-02-23 09:17:30 -08: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 Remove engine from TreeManager and subclasses 2014-11-29 17:22:17 -07:00
test_select_manager.rb Delegate to Connection Visitor in WhereSQL Visitor 2015-12-17 12:49:50 -07:00
test_table.rb Remove engine from TreeManager and subclasses 2014-11-29 17:22:17 -07:00
test_update_manager.rb Remove engine from TreeManager and subclasses 2014-11-29 17:22:17 -07:00