-
Notifications
You must be signed in to change notification settings - Fork 5
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 problem with database names using hyphens #299
Conversation
Will squash/rebase if build is green to have a single commit :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, first of all thanks and good catch! We seem to have missed this case.
I looked again at how it was solved in the CreateDatabaseCommand
of doctrine bundle and found these lines:
I would also do the quoting via dbal, since i don't know which databases need special treatment :D
In the CreateDatabaseCommand
it is checked whether a path exists, if so, the quoting is skipped. I don't know if it is relevant to us. I think it only happens with sqlite?
Good point absolutely. Was thinking about it also.
Yes. I think this is only sqlite where the db is stored as a file. |
Okay, i would ignore the "path" case for now. If the pipeline is green i would merge it. 👍 |
This will fix an issue while trying to drop/create a database having hyphens: E.g. `event-store-db`
Squashed and rebased onto 2.0.x 👍 |
Thank you! |
Hi. First off all. Awesome lib. Thanks <3
While working to get it running, I noticed that there is a problem when creating a database where the name has hyphens in it. Using this, the name must be used with backticks.