Class: ActiveRecord::ConnectionAdapters::IBM_DBColumn
- Defined in:
- lib/active_record/connection_adapters/ibm_db_adapter.rb
Overview
end of Module SchemaStatements
Class Method Summary collapse
-
.binary_to_string(value) ⇒ Object
Used to convert from BLOBs to Strings.
Instance Method Summary collapse
-
#initialize ⇒ IBM_DBColumn
constructor
:nodoc:.
Constructor Details
#initialize ⇒ IBM_DBColumn
:nodoc:
448 449 450 451 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 448 def initialize(*) puts_log "15" super end |
Class Method Details
.binary_to_string(value) ⇒ Object
Used to convert from BLOBs to Strings
454 455 456 457 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 454 def self.binary_to_string(value) # Returns a string removing the eventual BLOB scalar function value.to_s.gsub(/"SYSIBM"."BLOB"\('(.*)'\)/i,'\1') end |