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


176
177
178
179
180
181
182
# File 'lib/oci8/bindtype.rb', line 176

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