Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dbname reference from database connection configuration
There is still the dbname within the url. Need to get rid of this in CreateDatabaseCommand, because else it still tries to connect to the server with this dbname, which probably doesn't exists yet.
- Loading branch information
9e556cb
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.
@kingcrunch This commit breaks the command for a DBAL service configured as an SQLite database as of version
1.6.0
of the bundle. If$params['path']
is unset the program flow enters the if statement at L81 and$name
is quoted twice, thus breaking the eventualPDO
class instantiation down the line.On my box, surrounding the if block with a couple of
dump($name)
yields the following output, and commenting out the conditional block solves the problem:Since I don't understand what's the rationale behind this commit I'm not confident enough to propose a fix, nevertheless I wanted to bring this to your attention. Thank you.