Class Sequel::Informix::Dataset
In: lib/sequel/adapters/informix.rb
Parent: Sequel::Dataset

Methods

Included Modules

UnsupportedIntersectExcept

Constants

SELECT_CLAUSE_ORDER = %w'limit distinct columns from join where having group compounds order'.freeze

Public Instance methods

[Source]

    # File lib/sequel/adapters/informix.rb, line 43
43:       def fetch_rows(sql, &block)
44:         execute(sql) do |cursor|
45:           begin
46:             col_map = nil
47:             cursor.open.each_hash do |h|
48:               unless col_map
49:                 col_map = {}
50:                 @columns = h.keys.map{|k| col_map[k] = output_identifier(k)}
51:               end
52:               h2 = {}
53:               h.each{|k,v| h2[col_map[k]||k] = v}
54:               yield h2
55:             end
56:           ensure
57:             cursor.drop
58:           end
59:         end
60:         self
61:       end

[Validate]