1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

6 commits

Author SHA1 Message Date
Sean Griffin
590c784a30 Add order to BindParams in the ToSql collector
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.
2014-11-17 14:52:38 -08:00
Jiri Pospisil
0a7e0ef210 Collectors: Introduce PlainString and make use of it in SQLString 2014-06-14 23:23:36 +02:00
Aaron Patterson
f81965509d add a compile method to the collectors 2014-04-09 14:31:10 -07:00
Aaron Patterson
9c87737c9a adding a bind value collector 2014-04-09 11:58:44 -07:00
Aaron Patterson
1f9333e23b fixing some tests in to_sql 2014-04-08 14:18:44 -07:00
Aaron Patterson
df52f7ca2f initial commit for collector implementation 2014-03-25 11:29:41 -07:00