| Class | Sequel::Informix::Dataset |
| In: |
lib/sequel_core/adapters/informix.rb
|
| Parent: | Sequel::Dataset |
| SELECT_CLAUSE_ORDER | = | %w'limit distinct columns from join where having group compounds order'.freeze |
# File lib/sequel_core/adapters/informix.rb, line 53
53: def fetch_rows(sql, &block)
54: execute(sql) do |cursor|
55: begin
56: col_map = nil
57: cursor.open.each_hash do |h|
58: unless col_map
59: col_map = {}
60: @columns = h.keys.map{|k| col_map[k] = output_identifier(k)}
61: end
62: h2 = {}
63: h.each{|k,v| h2[col_map[k]||k] = v}
64: yield h2
65: end
66: ensure
67: cursor.drop
68: end
69: end
70: self
71: end