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
2fa58ee7
Commit
2fa58ee7
authored
Feb 01, 2010
by
beberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] DDC-296 - Fix in quoting
parent
310d98cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MysqlSessionInit.php
lib/Doctrine/DBAL/Event/Listeners/MysqlSessionInit.php
+2
-2
MysqlSessionInitTest.php
tests/Doctrine/Tests/DBAL/Events/MysqlSessionInitTest.php
+1
-1
No files found.
lib/Doctrine/DBAL/Event/Listeners/MysqlSessionInit.php
View file @
2fa58ee7
...
...
@@ -64,8 +64,8 @@ class MysqlSessionInit implements EventSubscriber
*/
public
function
postConnect
(
ConnectionEventArgs
$args
)
{
$collation
=
(
$this
->
_collation
)
?
" COLLATE
'"
.
$this
->
_collation
:
"'
"
;
$args
->
getConnection
()
->
executeUpdate
(
"SET NAMES
'"
.
$this
->
_charset
.
"'"
.
$collation
);
$collation
=
(
$this
->
_collation
)
?
" COLLATE
"
.
$this
->
_collation
:
"
"
;
$args
->
getConnection
()
->
executeUpdate
(
"SET NAMES
"
.
$this
->
_charset
.
$collation
);
}
public
function
getSubscribedEvents
()
...
...
tests/Doctrine/Tests/DBAL/Events/MysqlSessionInitTest.php
View file @
2fa58ee7
...
...
@@ -16,7 +16,7 @@ class MysqlSessionInitTest extends DbalTestCase
$connectionMock
=
$this
->
getMock
(
'Doctrine\DBAL\Connection'
,
array
(),
array
(),
''
,
false
);
$connectionMock
->
expects
(
$this
->
once
())
->
method
(
'executeUpdate'
)
->
with
(
$this
->
equalTo
(
"SET NAMES
'foo' COLLATE '
bar"
));
->
with
(
$this
->
equalTo
(
"SET NAMES
foo COLLATE
bar"
));
$eventArgs
=
new
ConnectionEventArgs
(
$connectionMock
);
...
...
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