| Class | Sequel::DB2::Dataset |
| In: |
lib/sequel/adapters/db2.rb
|
| Parent: | Sequel::Dataset |
| MAX_COL_SIZE | = | 256 |
# File lib/sequel/adapters/db2.rb, line 80
80: def fetch_rows(sql)
81: execute(sql) do |sth|
82: @column_info = get_column_info(sth)
83: @columns = @column_info.map {|c| output_identifier(c[:name])}
84: while (rc = SQLFetch(@handle)) != SQL_NO_DATA_FOUND
85: @db.check_error(rc, "Could not fetch row")
86: yield hash_row(sth)
87: end
88: end
89: self
90: end