Sha256: 6998bcfe513062967fbaa4c571796f42d20b75115e7fc4f0ab123a04f08e0b53
Contents?: true
Size: 979 Bytes
Versions: 20
Compression:
Stored size: 979 Bytes
Contents
module ActiveRecord module ConnectionAdapters module OracleEnhanced module OCIQuoting def _type_cast(value) case value when ActiveModel::Type::Binary::Data lob_value = value == '' ? ' ' : value bind_type = OCI8::BLOB ora_value = bind_type.new(@connection.raw_oci_connection, lob_value) ora_value.size = 0 if value == '' ora_value when ActiveRecord::OracleEnhanced::Type::Text::Data lob_value = value.to_s == '' ? ' ' : value.to_s bind_type = OCI8::CLOB ora_value = bind_type.new(@connection.raw_oci_connection, lob_value) ora_value.size = 0 if value.to_s == '' ora_value else super end end end end end end module ActiveRecord module ConnectionAdapters module OracleEnhanced module Quoting prepend OCIQuoting end end end end
Version data entries
20 entries across 20 versions & 1 rubygems