Browse files

MySQL: ensure that @config is set.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 08309ba commit 39b71bb8a18baf56a4c9b1ac55fb486a61246672 @jeremy jeremy committed Dec 9, 2005
Showing with 2 additions and 3 deletions.
  1. +2 −3 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
View
5 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -80,11 +80,10 @@ class MysqlAdapter < AbstractAdapter
"MySQL server has gone away"
]
- def initialize(connection, logger, connection_options=nil, config={})
+ def initialize(connection, logger, connection_options, config)
super(connection, logger)
- @connection_options = connection_options
+ @connection_options, @config = connection_options, config
@null_values_in_each_hash = Mysql.const_defined?(:VERSION)
- @config = config
connect
end

0 comments on commit 39b71bb

Please sign in to comment.