-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix: remove the database name removal on the builder #50
Conversation
Hi @parmcoder I'd like to discuss your case first. The change breaks new database creation:
please share your use-case |
Of course, it should break. You were logging into the Postgres maintainer default database (aka Postgres). That's why you can create a database. Now, you should not be able to do that. Currently, I cannot use your command to do anything with custom users except with Use-caseSomehow, I want to be able to run some scripts as a non-superuser to check if they can do something silly. ProblemI technically wanna quickly create a database from a new cluster and run some scripts using |
Hi @parmcoder I created issue #53 and the corresponding branch https://github.com/max-ieremenko/SqlDatabase/tree/feature/53. To make work the existing and your use case: // builder.Database = null;
builder.Database = "postgres"
_connectionStringMaster = builder.ToString(); The fix will be released in version 4.2.2 |
Thanks, I changed the base to merge. |
@max-ieremenko please review my code again. I think it should be corrected now. |
Hi owner! @max-ieremenko
I somehow found your package interesting, so I installed this package to manage my cluster.
However, I found that you removed the database name from the builder and that made me unable to connect to the database I proposed.
I don't have a test, so please add the test for me if you need one.
Please review my code and release the new version.
Thanks.