# File lib/dbi/handles/database.rb, line 125 def select_all(stmt, *bindvars, &p) sanity_check(stmt) rows = nil execute(stmt, *bindvars) do |sth| if block_given? sth.each(&p) else rows = sth.fetch_all end end return rows end