Class: ActiveRecord::ConnectionAdapters::IBM_DBColumn

Inherits:
Column
  • Object
show all
Defined in:
lib/active_record/connection_adapters/ibm_db_adapter.rb

Overview

class IBM_DBColumn < Column

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIBM_DBColumn

delegate :precision, :scale, :limit, :type, :sql_type, to: :sql_type_metadata, allow_nil: true



459
460
461
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 459

def initialize(*)
      super
end

Class Method Details

.binary_to_string(value) ⇒ Object

Used to convert from BLOBs to Strings



478
479
480
481
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 478

def self.binary_to_string(value)
	# Returns a string removing the eventual BLOB scalar function
	value.to_s.gsub(/"SYSIBM"."BLOB"\('(.*)'\)/i,'\1')
end