aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/select_core.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes/select_core.rb')
-rw-r--r--lib/arel/nodes/select_core.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/arel/nodes/select_core.rb b/lib/arel/nodes/select_core.rb
index 6e85968b31..e52db6eb77 100644
--- a/lib/arel/nodes/select_core.rb
+++ b/lib/arel/nodes/select_core.rb
@@ -2,12 +2,14 @@ module Arel
module Nodes
class SelectCore
attr_reader :froms, :projections, :wheres, :groups
+ attr_accessor :having
def initialize
@froms = []
@projections = []
@wheres = []
@groups = []
+ @having = nil
end
def initialize_copy other
@@ -16,6 +18,7 @@ module Arel
@projections = @projections.clone
@wheres = @wheres.clone
@group = @groups.clone
+ @having = @having.clone if @having
end
end
end