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
cdeb9e8c
Commit
cdeb9e8c
authored
Jan 15, 2017
by
Christian Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade documentation and additional test
parent
2dc41962
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
UPGRADE.md
UPGRADE.md
+10
-0
DriverManagerTest.php
tests/Doctrine/Tests/DBAL/DriverManagerTest.php
+4
-0
No files found.
UPGRADE.md
View file @
cdeb9e8c
# Upgrade to 2.6
## MINOR BC BREAK: URL-style DSN with percentage sign in password
URL-style DSNs (e.g.
``mysql://foo@bar:localhost/db``
) are now assumed to be percent-encoded
in order to allow certain special characters in usernames, paswords and database names. If
you are using a URL-style DSN and have a username, password or database name containing a
percentage sign, you need to update your DSN. If your password is, say,
``foo%foo``
, it
should be encoded as
``foo%25foo``
.
# Upgrade to 2.5.1
# Upgrade to 2.5.1
## MINOR BC BREAK: Doctrine\DBAL\Schema\Table
## MINOR BC BREAK: Doctrine\DBAL\Schema\Table
...
...
tests/Doctrine/Tests/DBAL/DriverManagerTest.php
View file @
cdeb9e8c
...
@@ -203,6 +203,10 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase
...
@@ -203,6 +203,10 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase
'mysql://foo%3A:bar%2F@localhost/baz+baz%40'
,
'mysql://foo%3A:bar%2F@localhost/baz+baz%40'
,
array
(
'user'
=>
'foo:'
,
'password'
=>
'bar/'
,
'host'
=>
'localhost'
,
'dbname'
=>
'baz+baz@'
,
'driver'
=>
'Doctrine\DBAL\Driver\PDOMySQL\Driver'
),
array
(
'user'
=>
'foo:'
,
'password'
=>
'bar/'
,
'host'
=>
'localhost'
,
'dbname'
=>
'baz+baz@'
,
'driver'
=>
'Doctrine\DBAL\Driver\PDOMySQL\Driver'
),
),
),
'simple URL with percent sign in password'
=>
array
(
'mysql://foo:bar%25bar@localhost/baz'
,
array
(
'user'
=>
'foo'
,
'password'
=>
'bar%bar'
,
'host'
=>
'localhost'
,
'dbname'
=>
'baz'
,
'driver'
=>
'Doctrine\DBAL\Driver\PDOMySQL\Driver'
),
),
// DBAL-1234
// DBAL-1234
'URL without scheme and without any driver information'
=>
array
(
'URL without scheme and without any driver information'
=>
array
(
...
...
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