Class: ActiveRecord::ConnectionAdapters::IBM_DBColumn

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

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Column

#auto_increment?

Constructor Details

#initializeIBM_DBColumn

Returns a new instance of IBM_DBColumn.



589
590
591
592
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 589

def initialize(*)
  puts_log '15'
  super
end

Class Method Details

.binary_to_string(value) ⇒ Object

Used to convert from BLOBs to Strings



595
596
597
598
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 595

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