Module: Sequel::MySQL::PreparedStatements::DatasetMethods::CallableStatementMethods

Defined in:
lib/sequel/adapters/utils/mysql_prepared_statements.rb

Instance Method Summary collapse

Instance Method Details

#subselect_sql_append(sql, ds) ⇒ Object

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



35
36
37
38
39
# File 'lib/sequel/adapters/utils/mysql_prepared_statements.rb', line 35

def subselect_sql_append(sql, ds)
  ds.clone(:append_sql=>sql, :prepared_args=>prepared_args, :bind_vars=>@opts[:bind_vars]).
    send(:to_prepared_statement, :select, nil, :extend=>bound_variable_modules).
    prepared_sql
end