Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
2d759495
Commit
2d759495
authored
Nov 27, 2014
by
David Zuelke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
early assign as per feedback
parent
83cbc0b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
DriverManager.php
lib/Doctrine/DBAL/DriverManager.php
+3
-5
No files found.
lib/Doctrine/DBAL/DriverManager.php
View file @
2d759495
...
...
@@ -238,11 +238,9 @@ final class DriverManager
}
if
(
isset
(
$url
[
'scheme'
]))
{
$url
[
'scheme'
]
=
str_replace
(
'-'
,
'_'
,
$url
[
'scheme'
]);
// URL schemes must not contain underscores, but dashes are ok
if
(
isset
(
self
::
$driverSchemeAliases
[
$url
[
'scheme'
]]))
{
$params
[
'driver'
]
=
self
::
$driverSchemeAliases
[
$url
[
'scheme'
]];
// use alias
}
else
{
$params
[
'driver'
]
=
$url
[
'scheme'
];
// let's see what checkParams() says about it later
$params
[
'driver'
]
=
str_replace
(
'-'
,
'_'
,
$url
[
'scheme'
]);
// URL schemes must not contain underscores, but dashes are ok
if
(
isset
(
self
::
$driverSchemeAliases
[
$params
[
'driver'
]]))
{
$params
[
'driver'
]
=
self
::
$driverSchemeAliases
[
$params
[
'driver'
]];
// use alias like "postgres", else we just let checkParams decide later if the driver exists (for literal "pdo-pgsql" etc)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment