# File lib/dbi/handles/statement.rb, line 325
325:         def fetch_all
326:             raise InterfaceError, "Statement was already closed!" if @handle.nil?
327:             raise InterfaceError, "Statement must first be executed" unless @fetchable
328: 
329:             cols = column_names
330:             fetched_rows = []
331: 
332:             begin
333:                 while row = fetch do
334:                     fetched_rows.push(row)
335:                 end
336:             rescue Exception
337:             end
338: 
339:             @handle.cancel
340:             @fetchable = false
341: 
342:             return fetched_rows
343:         end