Skip to content
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

Fixed temporary configuration for database creation #419

Merged
merged 2 commits into from
May 18, 2016
Merged

Fixed temporary configuration for database creation #419

merged 2 commits into from
May 18, 2016

Conversation

xyNNN
Copy link
Contributor

@xyNNN xyNNN commented May 18, 2016

When you create the database via the Propel command propel:database:create you've to connect without the given database name from the configuration. Due this fact the DSN is modified to add the possibility to connect to the database. The problem is that after the database name the charset is appended and the result was like the following.

mysql:host=127.0.0.1charset=UTF8

@@ -91,7 +91,7 @@ private function getTemporaryConfiguration($config)
$dbName = $this->parseDbName($config['dsn']);

$config['dsn'] = preg_replace(
'#;?dbname='.$dbName.';?#',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last ? needs to be removed as well 👍

@marcj marcj merged commit 830e68f into propelorm:3.0 May 18, 2016
@marcj
Copy link
Member

marcj commented May 18, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants