Class: ActiveRecord::ConnectionAdapters::IBM_DBColumn
- Defined in:
- lib/active_record/connection_adapters/ibm_db_adapter.rb
Overview
class IBM_DBColumn < Column
Class Method Summary collapse
-
.binary_to_string(value) ⇒ Object
Used to convert from BLOBs to Strings.
Instance Method Summary collapse
-
#initialize ⇒ IBM_DBColumn
constructor
delegate :precision, :scale, :limit, :type, :sql_type, to: :sql_type_metadata, allow_nil: true.
Constructor Details
#initialize ⇒ IBM_DBColumn
delegate :precision, :scale, :limit, :type, :sql_type, to: :sql_type_metadata, allow_nil: true
461 462 463 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 461 def initialize(*) super end |
Class Method Details
.binary_to_string(value) ⇒ Object
Used to convert from BLOBs to Strings
480 481 482 483 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 480 def self.binary_to_string(value) # Returns a string removing the eventual BLOB scalar function value.to_s.gsub(/"SYSIBM"."BLOB"\('(.*)'\)/i,'\1') end |