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
362 def subselect_sql_append(sql, ds)
363   ps = ds.to_prepared_statement(:select).
364     clone(:append_sql=>sql, :prepared_args=>prepared_args).
365     with_extend(CallableStatementMethods)
366   ps = ps.bind(@opts[:bind_vars]) if @opts[:bind_vars]
367   ps.prepared_sql
368 end