Class: ActiveRecord::ConnectionAdapters::IBM_DBColumn
- Defined in:
- lib/active_record/connection_adapters/ibm_db_adapter.rb
Overview
:nodoc:
Class Method Summary collapse
-
.binary_to_string(value) ⇒ Object
Used to convert from BLOBs to Strings.
Instance Method Summary collapse
-
#initialize ⇒ IBM_DBColumn
constructor
A new instance of IBM_DBColumn.
Methods inherited from Column
Constructor Details
#initialize ⇒ IBM_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 |