New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unset parameters for sharded databases as well #896
Conversation
@kimhemsoe The issue is, in the provided test there's no Would you recommend I add a |
Yes, a test showing what you are trying to fix would be nice. |
@kimhemsoe Updated a test that fails on the non-fixed version (but it's all dependent on the exact configuration anyway) |
Do we need the same kind of fix for MasterSlaveConnection too ? |
@stof It seems that case is covered by the default behavior (the connection parameters are taken from master and then reset in the same fashion as a ‘normal’ connection), so I don’t think so. |
@alcaeus Should this be backported to the |
@xabbuh Yes - we've had a minor hiccup with the history. I'll fix it today before releasing. |
Creating a new database for the global database of a sharded configuration fails, because the command tries to connect to the database that doesn't exist yet.
The cause of this is that the dbname, url and path parameters are not unset for sharded databases, while they are unset for 'normal' connections.