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
da2349e4
Unverified
Commit
da2349e4
authored
Jul 04, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove workaround in PDOSqlsrv\Connection::quote()
parent
13e73f10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
Connection.php
lib/Doctrine/DBAL/Driver/PDOSqlsrv/Connection.php
+0
-19
No files found.
lib/Doctrine/DBAL/Driver/PDOSqlsrv/Connection.php
View file @
da2349e4
...
...
@@ -3,11 +3,7 @@
namespace
Doctrine\DBAL\Driver\PDOSqlsrv
;
use
Doctrine\DBAL\Driver\PDOConnection
;
use
Doctrine\DBAL\ParameterType
;
use
PDO
;
use
function
is_string
;
use
function
strpos
;
use
function
substr
;
/**
* Sqlsrv Connection implementation.
...
...
@@ -37,19 +33,4 @@ class Connection extends PDOConnection
return
$stmt
->
fetchColumn
();
}
/**
* {@inheritDoc}
*/
public
function
quote
(
$value
,
$type
=
ParameterType
::
STRING
)
{
$val
=
parent
::
quote
(
$value
,
$type
);
// Fix for a driver version terminating all values with null byte
if
(
is_string
(
$val
)
&&
strpos
(
$val
,
"
\0
"
)
!==
false
)
{
$val
=
substr
(
$val
,
0
,
-
1
);
}
return
$val
;
}
}
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