diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-25 22:00:07 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-25 22:00:07 +0900 |
commit | 4f12139a22f70ff0abc1709b8888011f8bfee42c (patch) | |
tree | 7ee8310a3727a51a8a7f5e2bcf95427488930057 /activerecord/lib/arel/visitors/to_sql.rb | |
parent | 4f3eb86ffec8ebc4faea3143dda8ebb5aad74d08 (diff) | |
parent | 41b92914f89be855cc6af768f13fd5fc53c967fa (diff) | |
download | rails-4f12139a22f70ff0abc1709b8888011f8bfee42c.tar.gz rails-4f12139a22f70ff0abc1709b8888011f8bfee42c.tar.bz2 rails-4f12139a22f70ff0abc1709b8888011f8bfee42c.zip |
Merge pull request #33977 from marshall-lee/abandon-top-support
Abandon TOP support.
Diffstat (limited to 'activerecord/lib/arel/visitors/to_sql.rb')
-rw-r--r-- | activerecord/lib/arel/visitors/to_sql.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/lib/arel/visitors/to_sql.rb b/activerecord/lib/arel/visitors/to_sql.rb index 0682c066fb..81ca63f261 100644 --- a/activerecord/lib/arel/visitors/to_sql.rb +++ b/activerecord/lib/arel/visitors/to_sql.rb @@ -237,8 +237,6 @@ module Arel # :nodoc: all def visit_Arel_Nodes_SelectCore(o, collector) collector << "SELECT" - collector = maybe_visit o.top, collector - collector = maybe_visit o.set_quantifier, collector collect_nodes_for o.projections, collector, SPACE @@ -405,11 +403,6 @@ module Arel # :nodoc: all visit o.expr, collector end - # FIXME: this does nothing on most databases, but does on MSSQL - def visit_Arel_Nodes_Top(o, collector) - collector - end - def visit_Arel_Nodes_Lock(o, collector) visit o.expr, collector end |