lib/piglet/relation/distinct.rb in piglet-0.2.5 vs lib/piglet/relation/distinct.rb in piglet-0.3.0

- old
+ new

@@ -3,12 +3,12 @@ module Piglet module Relation class Distinct # :nodoc: include Relation - def initialize(relation, options={}) + def initialize(relation, interpreter, options={}) options ||= {} - @sources, @parallel = [relation], options[:parallel] + @sources, @interpreter, @parallel = [relation], interpreter, options[:parallel] end def to_s str = "DISTINCT #{@sources.first.alias}" str << " PARALLEL #{@parallel}" if @parallel \ No newline at end of file