# File lib/dbi/dbi.rb, line 905 def fetch_all raise InterfaceError, "Statement was already closed!" if @handle.nil? raise InterfaceError, "Statement must first be executed" unless @fetchable cols = column_names rows = @handle.fetch_all if rows.nil? @handle.cancel @fetchable = false return [] else return rows.collect{|r| Row.new(cols, r)} end end