Module: Sequel::MySQL::PreparedStatements::DatasetMethods::PreparedStatementMethods

Includes:
Dataset::UnnumberedArgumentMapper
Defined in:
lib/sequel/adapters/shared/mysql_prepared_statements.rb

Overview

Methods for MySQL prepared statements using the native driver.

Instance Attribute Summary

Attributes included from Dataset::ArgumentMapper

#bind_arguments, #prepared_statement_name

Instance Method Summary collapse

Methods included from Dataset::ArgumentMapper

#prepared_sql

Instance Method Details

#callObject

Raise a more obvious error if you attempt to call a unnamed prepared statement.

Raises:



108
109
110
111
# 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