aboutsummaryrefslogtreecommitdiffstats
path: root/test/visitors/test_bind_visitor.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add order to BindParams in the ToSql collectorSean Griffin2014-11-171-2/+2
| | | | | | | | | | | | 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.
* move the dispatch table to be per-instanceAaron Patterson2014-09-221-6/+0
| | | | | | | visitors are not shared among threads, so any mutations to the cache should be OK. The cache is also pre-populated on construction, but we should pull that out so we can share the cache among visitors in the future.
* make the bindvalue visitor backwards compatibleAaron Patterson2014-04-091-3/+3
|
* fixing bind value testsAaron Patterson2014-04-081-5/+3
|
* bind visitor working with collector objectAaron Patterson2014-04-081-6/+16
|
* Bump minitest to 5.1.Vipul A M2014-01-041-1/+1
|
* Added unit test for the mysql2 bind substitutionNoemj2013-02-051-1/+20
|
* added a module for visiting and transforming bind valuesAaron Patterson2012-02-211-0/+39