lib/dbi/handles/statement.rb
# 
# Fetch the entire result set. Result is array of DBI::Row.
#
Fetch the entire result set. Result is array of DBI::Row.
Fetch the entire result set . Result is array of DBI :: Row .
def fetch_all
            sanity_check({:fetchable => true, :prepared => true, :executed => true})
            cols = column_names
            fetched_rows = []
            begin
                while row = fetch do
                    fetched_rows.push(row)
                end
            rescue Exception
            end
            @handle.cancel
            @fetchable = false
            return fetched_rows
        end
def fetch_all sanity_check ( { :fetchable => true , :prepared => true , :executed => true } ) cols = column_names fetched_rows = [ ] begin while row = fetch do fetched_rows . push ( row ) end rescue Exception end @handle . cancel @fetchable = false return fetched_rows end
Fetch the entire result set.
Fetch the entire result set .