# File lib/dbi/dbi.rb, line 630 def execute(stmt, *bindvars) raise InterfaceError, "Database connection was already closed!" if @handle.nil? sth = StatementHandle.new(@handle.execute(stmt, *conv_param(*bindvars)), true, false) sth.trace(@trace_mode, @trace_output) if block_given? begin yield sth ensure sth.finish unless sth.finished? end else return sth end end