Skip to content

Mysql 0.5.7: use the adapter connection parameters to get the password instead#99

Open
HoneyryderChuck wants to merge 2 commits intoamatsuda:masterfrom
HoneyryderChuck:mysql-0.5.7
Open

Mysql 0.5.7: use the adapter connection parameters to get the password instead#99
HoneyryderChuck wants to merge 2 commits intoamatsuda:masterfrom
HoneyryderChuck:mysql-0.5.7

Conversation

@HoneyryderChuck
Copy link

the previous fix loaded the db_config from the pool, but this had the
drawback of getting the config from the default shard; this breaks when
handling multiple shards. and besides, the connection actually holds
enough information to perform the connection except for the password,
which was the 0.5.7 breaking change.

this fixes it by tapping unto the @connection_parameters ivar instead,
which is still in use in rails master.

KeiSAKATA and others added 2 commits March 20, 2026 10:37
the previous fix loaded the db_config from the pool, but this had the
drawback of getting the config from the default shard; this breaks when
handling multiple shards. and besides, the connection actually holds
enough information to perform the connection except for the password,
which was the 0.5.7 breaking change.

this fixes it by tapping unto the `@connection_parameters` ivar instead,
which is still in use in rails master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants