Module: Sequel::IBMDB::Dataset::CallableStatementMethods
- Defined in:
- lib/sequel/adapters/ibmdb.rb
Instance Method Summary collapse
-
#subselect_sql_append(sql, ds) ⇒ Object
Extend given dataset with this module so subselects inside subselects in prepared statements work.
Instance Method Details
#subselect_sql_append(sql, ds) ⇒ Object
Extend given dataset with this module so subselects inside subselects in prepared statements work.
359 360 361 362 363 364 365 |
# File 'lib/sequel/adapters/ibmdb.rb', line 359 def subselect_sql_append(sql, ds) ps = ds.to_prepared_statement(:select).clone(:append_sql=>sql) ps.extend(CallableStatementMethods) ps = ps.bind(@opts[:bind_vars]) if @opts[:bind_vars] ps.prepared_args = prepared_args ps.prepared_sql end |