aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations/operations/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/algebra/relations/operations/project.rb')
-rw-r--r--lib/arel/algebra/relations/operations/project.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/arel/algebra/relations/operations/project.rb b/lib/arel/algebra/relations/operations/project.rb
index 649ec19713..1c24ae6caf 100644
--- a/lib/arel/algebra/relations/operations/project.rb
+++ b/lib/arel/algebra/relations/operations/project.rb
@@ -1,10 +1,11 @@
module Arel
class Project < Compound
- attr_reader :projections, :attributes
+ attr_reader :projections, :attributes, :christener
def initialize(relation, projections)
super(relation)
@projections = projections.map { |p| p.bind(relation) }
+ @christener = Sql::Christener.new
@attributes = Header.new(projections.map { |x| x.bind(self) })
end