Class: Arel::Visitors::ToSql

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

Overview

opening and closing the class to ensure backward compatibility

Direct Known Subclasses

IBM_DB

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ ToSql

Returns a new instance of ToSql.



2853
2854
2855
2856
2857
2858
2859
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 2853

def initialize connection
  @connection     = connection
  @schema_cache   = connection.schema_cache if(connection.respond_to?(:schema_cache))
  @quoted_tables  = {}
  @quoted_columns = {}
  @last_column    = nil
end