1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/relation
Sean Griffin 6efb39456a Use bind parameters for ranges in where clauses
This is a similar case to wanting ot use bind params for limit and
offset. Right now passing a range grows the amount of prepared
statements in an unbounded fashion. We could avoid using prepared
statements in that case, similar to what we do with arrays, but there's
a known number of variants for ranges.

This ends up duplicating some of the logic from Arel for how to handle
potentially infinite ranges, and that behavior may be removed from Arel
in the future.

Fixes #23074
2016-01-21 13:27:40 -07:00
..
batches Changed options for find_each and variants to have options start/finish instead of start_at/end_at based on comments 2016-01-18 12:40:30 +05:30
predicate_builder Use bind parameters for ranges in where clauses 2016-01-21 13:27:40 -07:00
batches.rb Changed options for find_each and variants to have options start/finish instead of start_at/end_at based on comments 2016-01-18 12:40:30 +05:30
calculations.rb Refactor Calculations#execute_grouped_calculation and clean AR test case 2015-10-22 04:23:56 -03:00
delegation.rb Ensure Relation responds to shuffle 2015-12-01 16:41:50 -07:00
finder_methods.rb Fix first(limit) to take advantage of loaded? records if available 2015-12-24 09:03:28 -08:00
from_clause.rb activerecord: reuse immutable objects 2016-01-04 12:09:37 -05:00
merger.rb Properly include the from clause when merging relations 2016-01-14 13:36:30 -07:00
predicate_builder.rb Use bind parameters for ranges in where clauses 2016-01-21 13:27:40 -07:00
query_attribute.rb docs, :nodoc: FromClause, QueryAttribute and WhereClauseFactory. 2015-10-13 14:28:55 +02:00
query_methods.rb Improve error message for #or when it is structurally incompatible 2016-01-13 01:13:18 -02:00
record_fetch_warning.rb activerecord: allocate fewer arrays in RecordFetchWarning 2016-01-04 07:58:32 -05:00
spawn_methods.rb Raise ArgumentError when passing a truthy value to merge 2015-11-17 14:57:48 +00:00
where_clause.rb Revert "Change WhereClause#merge to same named columns on diff tables" 2016-01-12 15:48:00 -07:00
where_clause_factory.rb Refactor case_{sensitive|insensitive}_comparison 2016-01-01 07:33:54 +09:00