module Sequel::IBMDB::Dataset::CallableStatementMethods

Public Instance Methods

subselect_sql_append(sql, ds) click to toggle source

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

    # 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