aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/bind_param.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable frozen_string_literal in all files in arelRafael Mendonça França2017-02-131-0/+1
|
* Implement equality for `BindParam`Sean Griffin2015-01-251-0/+3
| | | | | It is impossible to test equality of things constructing trees with bind params otherwise.
* Add order to BindParams in the ToSql collectorSean Griffin2014-11-171-0/+6
This removes the need for us to do the re-ordering by walking the AST in ActiveRecord. We're using a block to communicate with the collector, since the collector needs to be the thing which knows about the index, while the visitor is the thing that needs to know the syntax. The BindParam needs to know about neither of these things, so it's been changed to stop being a subclass of SqlLiteral I could also see an alternative implementation using format strings if for some reason blocks cause a problem.