Module: ActiveRecord::ConnectionAdapters::HostedDataServer

Included in:
IBM_DB2_I5, IBM_DB2_ZOS_8
Defined in:
lib/active_record/connection_adapters/ibm_db_adapter.rb

Overview

IBM_DB2_LUW_COBRA

Constant Summary collapse

RESERVED_WORDS =
open(rfile.to_s) { |f| YAML.load(f) }

Instance Method Summary collapse

Instance Method Details

#check_reserved_words(col_name) ⇒ Object



3914
3915
3916
3917
3918
3919
3920
3921
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 3914

def check_reserved_words(col_name)
  puts_log '164'
  if RESERVED_WORDS[col_name]
    '"' + RESERVED_WORDS[col_name] + '"'
  else
    col_name.to_s
  end
end