Class: OCI8::BindType::CLOB

Inherits:
Object
  • Object
show all
Defined in:
lib/oci8/bindtype.rb

Class Method Summary collapse

Class Method Details

.create(con, val, param, max_array_size) ⇒ Object



190
191
192
193
194
195
196
# File 'lib/oci8/bindtype.rb', line 190

def self.create(con, val, param, max_array_size)
  if param.is_a? OCI8::Metadata::Base and param.charset_form == :nchar
    OCI8::BindType::NCLOB.new(con, val, nil, max_array_size)
  else
    OCI8::BindType::CLOB.new(con, val, nil, max_array_size)
  end
end