Method: Sequel::IBMDB::Connection#execute_prepared

Defined in:
lib/sequel/adapters/ibmdb.rb

#execute_prepared(ps_name, *values) ⇒ Object

Execute the related prepared statement on the database with the given arguments.



93
94
95
96
97
98
99
100
# File 'lib/sequel/adapters/ibmdb.rb', line 93

def execute_prepared(ps_name, *values)
  stmt = @prepared_statements[ps_name].last
  res = stmt.execute(*values)
  unless res
    raise Error.new("Error executing statement #{ps_name}: #{error_msg}", error_sqlstate)
  end
  stmt
end