class FDB::TransactionRead

def to_a

def to_a
  o = self.dup
  o.instance_eval do
    if @mode == @@StreamingMode["ITERATOR"][0]
      if @limit.zero?
        @mode = @@StreamingMode["WANT_ALL"][0]
      else
        @mode = @@StreamingMode["EXACT"][0]
      end
    end
  end
  Enumerable.instance_method(:to_a).bind(o).call
end