Class: ActiveRecord::ConnectionAdapters::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/ibm_db_adapter.rb

Direct Known Subclasses

IBM_DBColumn

Class Method Summary collapse

Class Method Details

.binary_to_string(value) ⇒ Object



367
368
369
370
371
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 367

def self.binary_to_string(value)
  puts_log "binary_to_string"
  # Returns a string removing the eventual BLOB scalar function
  value.to_s.gsub(/"SYSIBM"."BLOB"\('(.*)'\)/i,'\1')
end