| Class | Sequel::DB2::Dataset |
| In: |
lib/sequel_core/adapters/db2.rb
|
| Parent: | Sequel::Dataset |
| MAX_COL_SIZE | = | 256 |
# File lib/sequel_core/adapters/db2.rb, line 89
89: def fetch_rows(sql)
90: execute(sql) do |sth|
91: @column_info = get_column_info(sth)
92: @columns = @column_info.map {|c| output_identifier(c[:name])}
93: while (rc = SQLFetch(@handle)) != SQL_NO_DATA_FOUND
94: @db.check_error(rc, "Could not fetch row")
95: yield hash_row(sth)
96: end
97: end
98: self
99: end