diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/nodes/select_statement.rb | 3 | ||||
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 1 |
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), |