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
-
#call ⇒ Object
Raise a more obvious error if you attempt to call a unnamed prepared statement.
Methods included from Dataset::ArgumentMapper
Instance Method Details
#call ⇒ Object
Raise a more obvious error if you attempt to call a unnamed prepared statement.
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 |