aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Sadauskas <psadauskas@gmail.com>2011-01-21 17:30:10 -0700
committerPaul Sadauskas <psadauskas@gmail.com>2011-01-21 17:30:10 -0700
commit6abed021b19d073f159f9b7e6d9f466e053f8e6b (patch)
treefc6575c72f23f658545c8c0074f09aaccda43706
parentd532b7ee430c5d0c412ab9f1a5e0dd3ebc47f86b (diff)
downloadrails-6abed021b19d073f159f9b7e6d9f466e053f8e6b.tar.gz
rails-6abed021b19d073f159f9b7e6d9f466e053f8e6b.tar.bz2
rails-6abed021b19d073f159f9b7e6d9f466e053f8e6b.zip
Don't need with_recursive
-rw-r--r--lib/arel/nodes/select_statement.rb3
-rw-r--r--lib/arel/visitors/to_sql.rb1
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/arel/nodes/select_statement.rb b/lib/arel/nodes/select_statement.rb
index cd74dd8e28..c99842f22f 100644
--- a/lib/arel/nodes/select_statement.rb
+++ b/lib/arel/nodes/select_statement.rb
@@ -2,7 +2,7 @@ module Arel
module Nodes
class SelectStatement < Arel::Nodes::Node
attr_reader :cores
- attr_accessor :limit, :orders, :lock, :offset, :with, :with_recursive
+ attr_accessor :limit, :orders, :lock, :offset, :with
def initialize cores = [SelectCore.new]
#puts caller
@@ -12,7 +12,6 @@ module Arel
@lock = nil
@offset = nil
@with = nil
- @with_recursive = nil
end
def initialize_copy other
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb
index f3c8710068..37c6a533ed 100644
--- a/lib/arel/visitors/to_sql.rb
+++ b/lib/arel/visitors/to_sql.rb
@@ -130,7 +130,6 @@ eowarn
def visit_Arel_Nodes_SelectStatement o
[
(visit(o.with) if o.with),
- (visit(o.with_recursive) if o.with_recursive),
o.cores.map { |x| visit_Arel_Nodes_SelectCore x }.join,
("ORDER BY #{o.orders.map { |x| visit x }.join(', ')}" unless o.orders.empty?),
(visit(o.limit) if o.limit),