Class: ActiveRecord::ConnectionAdapters::IBM_DBColumn
- Inherits:
-
Column
- Object
- Column
- ActiveRecord::ConnectionAdapters::IBM_DBColumn
- Defined in:
- lib/active_record/connection_adapters/ibm_db_adapter.rb
Class Method Summary collapse
-
.binary_to_string(value) ⇒ Object
Used to convert from BLOBs to Strings.
Class Method Details
.binary_to_string(value) ⇒ Object
Used to convert from BLOBs to Strings
325 326 327 328 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 325 def self.binary_to_string(value) # Returns a string removing the eventual BLOB scalar function value.to_s.gsub(/"SYSIBM"."BLOB"\('(.*)'\)/i,'\1') end |