Methods for MySQL prepared statements using the native driver.
Raise a more obvious error if you attempt to call a unnamed prepared statement.
# File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 108 def call(*) raise Error, "Cannot call prepared statement without a name" if prepared_statement_name.nil? super end
Execute the prepared statement with the bind arguments instead of the given SQL.
# File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 117 def execute(sql, opts={}, &block) super(prepared_statement_name, {:arguments=>bind_arguments}.merge(opts), &block) end
Same as execute, explicit due to intricacies of alias and super.
# File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 122 def execute_dui(sql, opts={}, &block) super(prepared_statement_name, {:arguments=>bind_arguments}.merge(opts), &block) end
Same as execute, explicit due to intricacies of alias and super.
# File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 127 def execute_insert(sql, opts={}, &block) super(prepared_statement_name, {:arguments=>bind_arguments}.merge(opts), &block) end