module Sequel::MySQL::PreparedStatements::DatasetMethods::CallableStatementMethods

Public Instance Methods

subselect_sql_append(sql, ds) click to toggle source

Extend given dataset with this module so subselects inside subselects in prepared statements work.

   # File lib/sequel/adapters/utils/mysql_prepared_statements.rb
35 def subselect_sql_append(sql, ds)
36   ds.clone(:append_sql=>sql, :prepared_args=>prepared_args, :bind_vars=>@opts[:bind_vars]).
37     send(:to_prepared_statement, :select, nil, :extend=>bound_variable_modules).
38     prepared_sql
39 end