# File lib/dbd_ado/ADO.rb, line 122 def execute # TODO: use Command and Parameter # TODO: substitute all ? by the parametes sql = bind(self, @statement, @params) @res_handle = @handle.Execute(sql) # TODO: SELECT and AutoCommit finishes the result-set # what to do? if @db['AutoCommit'] == true and not SQL.query?(@statement) then @db.commit end rescue RuntimeError => err raise DBI::DatabaseError.new(err.message) end