Module: Sequel::IBMDB::Dataset::CallableStatementMethods
- Defined in:
- lib/sequel/adapters/ibmdb.rb
Instance Method Summary (collapse)
-
- (Object) subselect_sql_append(sql, ds)
Extend given dataset with this module so subselects inside subselects in prepared statements work.
Instance Method Details
- (Object) subselect_sql_append(sql, ds)
Extend given dataset with this module so subselects inside subselects in prepared statements work.
362 363 364 365 366 367 368 |
# File 'lib/sequel/adapters/ibmdb.rb', line 362 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 |