module Sequel::IBMDB::Dataset::CallableStatementMethods

  1. lib/sequel/adapters/ibmdb.rb

Methods

Public Instance

  1. subselect_sql_append

Public Instance methods

subselect_sql_append(sql, ds)

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

[show source]
    # File lib/sequel/adapters/ibmdb.rb
361 def subselect_sql_append(sql, ds)
362   ps = ds.to_prepared_statement(:select).
363     clone(:append_sql=>sql, :prepared_args=>prepared_args).
364     with_extend(CallableStatementMethods)
365   ps = ps.bind(@opts[:bind_vars]) if @opts[:bind_vars]
366   ps.prepared_sql
367 end