# File lib/dbi/base_classes/statement.rb, line 97
 97:         def fetch_scroll(direction, offset)
 98:             case direction
 99:             when SQL_FETCH_NEXT
100:                 return fetch
101:             when SQL_FETCH_LAST
102:                 last_row = nil
103:                 while (row=fetch) != nil
104:                     last_row = row
105:                 end
106:                 return last_row
107:             when SQL_FETCH_RELATIVE
108:                 raise NotSupportedError if offset <= 0
109:                 row = nil
110:                 offset.times { row = fetch; break if row.nil? }
111:                 return row
112:             else
113:                 raise NotSupportedError
114:             end
115:         end