提交 24fa524c 编写于 作者: A Aaron Patterson

adding visitors to the respective adapters

上级 bd2f5c06
......@@ -127,6 +127,7 @@ def initialize(connection, logger, connection_options, config)
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 @@ def connection_active?
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册