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