# File lib/dbi/handles/database.rb, line 47
47:         def prepare(stmt)
48:             raise InterfaceError, "Database connection was already closed!" if @handle.nil?
49:             sth = StatementHandle.new(@handle.prepare(stmt), false, true, @convert_types)
50:             # FIXME trace sth.trace(@trace_mode, @trace_output)
51:             sth.dbh = self
52: 
53:             if block_given?
54:                 begin
55:                     yield sth
56:                 ensure
57:                     sth.finish unless sth.finished?
58:                 end
59:             else
60:                 return sth
61:             end 
62:         end