Skip to content

Commit 1ae79ef

Browse files
committed
fix: use _activeDatabase in connect() so reconnect preserves switched database
1 parent c71a9ab commit 1ae79ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugins/MySQLDriverPlugin/MySQLPluginDriver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ final class MySQLPluginDriver: PluginDatabaseDriver, @unchecked Sendable {
6363
port: config.port,
6464
user: config.username,
6565
password: config.password,
66-
database: config.database,
66+
database: _activeDatabase,
6767
sslConfig: sslConfig
6868
)
6969

0 commit comments

Comments
 (0)