mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
adding visitors to the respective adapters
This commit is contained in:
@@ -127,6 +127,7 @@ module ActiveRecord
|
||||
super(connection, logger)
|
||||
@connection_options, @config = connection_options, config
|
||||
@quoted_column_names, @quoted_table_names = {}, {}
|
||||
@visitor = Arel::Visitors::MySQL.new self
|
||||
end
|
||||
|
||||
def self.visitor_for(pool) # :nodoc:
|
||||
|
||||
@@ -307,6 +307,7 @@ module ActiveRecord
|
||||
def initialize(connection, logger, connection_parameters, config)
|
||||
super(connection, logger)
|
||||
@connection_parameters, @config = connection_parameters, config
|
||||
@visitor = Arel::Visitors::PostgreSQL.new self
|
||||
|
||||
# @local_tz is initialized as nil to avoid warnings when connect tries to use it
|
||||
@local_tz = nil
|
||||
|
||||
Reference in New Issue
Block a user