From 51676efe62d7d9c681101ab0cc1da4a425424eca Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Sat, 25 Jul 2020 10:55:40 -0700 Subject: [PATCH] Remove workaround in PDO\SQLSrv\Connection::quote() --- src/Driver/PDO/SQLSrv/Connection.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Driver/PDO/SQLSrv/Connection.php b/src/Driver/PDO/SQLSrv/Connection.php index 0ea51acd790..18de1acedcb 100644 --- a/src/Driver/PDO/SQLSrv/Connection.php +++ b/src/Driver/PDO/SQLSrv/Connection.php @@ -40,14 +40,7 @@ public function query(string $sql): Result */ public function quote($value, $type = ParameterType::STRING) { - $val = $this->connection->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; + return $this->connection->quote($value, $type); } public function exec(string $sql): int