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
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 |