lib/sequel/adapters/tinytds.rb in sequel-4.33.0 vs lib/sequel/adapters/tinytds.rb in sequel-4.34.0

- old
+ new

@@ -223,19 +223,19 @@ args << {:timezone=>:utc} if db.timezone == :utc cols = nil result.each(*args) do |r| unless cols cols = result.fields.map{|c| [c, output_identifier(c)]} - @columns = columns = cols.map(&:last) + self.columns = columns = cols.map(&:last) end h = {} cols.each do |s, sym| h[sym] = r[s] end yield h end else - @columns = columns + self.columns = columns if db.timezone == :utc result.each(:timezone=>:utc){|r| yield r} else result.each{|r| yield r} end