aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/select_statement.rb
diff options
context:
space:
mode:
authorKeenan Brock <keenan@thebrocks.net>2016-10-04 18:28:49 -0400
committerKeenan Brock <keenan@thebrocks.net>2017-12-05 09:36:08 -0500
commit2d78e3a160068d7a024e30b2178084d16cea9807 (patch)
treee8585cbdaabf61ca9466a25ef086425863191a4e /lib/arel/nodes/select_statement.rb
parent8f1db57f2d0f7d2cbb407f2c141dfd61ba8a599b (diff)
downloadrails-2d78e3a160068d7a024e30b2178084d16cea9807.tar.gz
rails-2d78e3a160068d7a024e30b2178084d16cea9807.tar.bz2
rails-2d78e3a160068d7a024e30b2178084d16cea9807.zip
Introduce NodeExpression as parent of scalar nodes
SQL is very powerful. Many nodes can be used as a sub expression or query. grouping all of these possible nodes together
Diffstat (limited to 'lib/arel/nodes/select_statement.rb')
-rw-r--r--lib/arel/nodes/select_statement.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/nodes/select_statement.rb b/lib/arel/nodes/select_statement.rb
index 641a08405d..79176d4be5 100644
--- a/lib/arel/nodes/select_statement.rb
+++ b/lib/arel/nodes/select_statement.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module Arel
module Nodes
- class SelectStatement < Arel::Nodes::Node
+ class SelectStatement < Arel::Nodes::NodeExpression
attr_reader :cores
attr_accessor :limit, :orders, :lock, :offset, :with