mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f726dbe080
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 '. |
||
---|---|---|
.. | ||
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 |