Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[6.x] Prevent making actual pdo connections while reconnecting #30998
Problems appear when the connection we are using is a read-only or write-only connection, in that case we don't want to make the other PDO connection while it won't be used as seen in this issue(#30957).
I went for
It just seems that the comments are rather misleading now, since
which actually does disconnect the connection and
which would not actually reconnect to the DB.
To me what makes more sense is to have an implementation where if a previous write connection existed and you call
You think something like this would work? I am assuming that when the PDOs are set to null it means they were disconnected.