Skip to content

Commit 79ccf9b

Browse files
committed
[mariadb] missing deep_dup in mariadb_connection
1 parent b72d5e7 commit 79ccf9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/arjdbc/mysql/connection_methods.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def mysql_connection(config)
102102
alias_method :mysql2_connection, :mysql_connection
103103

104104
def mariadb_connection(config)
105+
config = config.deep_dup
106+
105107
config[:adapter_spec] ||= ::ArJdbc::MySQL
106108
config[:adapter_class] = ActiveRecord::ConnectionAdapters::Mysql2Adapter unless config.key?(:adapter_class)
107109

0 commit comments

Comments
 (0)