2010-08-12 19:19:54 -04:00
|
|
|
module Arel
|
|
|
|
module Nodes
|
2010-08-13 00:21:20 -04:00
|
|
|
class SelectCore
|
2010-09-12 22:49:02 -04:00
|
|
|
attr_accessor :froms, :projections, :wheres, :groups
|
2010-09-08 18:29:22 -04:00
|
|
|
attr_accessor :having
|
2010-08-12 19:19:54 -04:00
|
|
|
|
|
|
|
def initialize
|
2010-09-20 17:27:34 -04:00
|
|
|
@froms = nil
|
2010-08-12 19:19:54 -04:00
|
|
|
@projections = []
|
|
|
|
@wheres = []
|
2010-09-07 18:47:38 -04:00
|
|
|
@groups = []
|
2010-09-08 18:29:22 -04:00
|
|
|
@having = nil
|
2010-08-12 19:19:54 -04:00
|
|
|
end
|
2010-08-19 01:30:36 -04:00
|
|
|
|
|
|
|
def initialize_copy other
|
|
|
|
super
|
2010-09-20 17:27:34 -04:00
|
|
|
@froms = @froms.clone if @froms
|
2010-08-30 18:35:13 -04:00
|
|
|
@projections = @projections.clone
|
2010-09-07 18:47:38 -04:00
|
|
|
@wheres = @wheres.clone
|
|
|
|
@group = @groups.clone
|
2010-09-08 18:29:22 -04:00
|
|
|
@having = @having.clone if @having
|
2010-08-19 01:30:36 -04:00
|
|
|
end
|
2010-08-12 19:19:54 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|