Module: Sequel::IBMDB::Dataset::CallableStatementMethods

Defined in:
lib/sequel/adapters/ibmdb.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.



361
362
363
364
365
366
367
# File 'lib/sequel/adapters/ibmdb.rb', line 361

def subselect_sql_append(sql, ds)
  ps = ds.to_prepared_statement(:select).
    clone(:append_sql=>sql, :prepared_args=>prepared_args).
    with_extend(CallableStatementMethods)
  ps = ps.bind(@opts[:bind_vars]) if @opts[:bind_vars]
  ps.prepared_sql
end