com php-src: Fix test for pdo_odbc: ext/pdo/tests/bug_ 65946.phpt

From: Date: Tue, 02 Jan 2018 10:34:57 +0000
Subject: com php-src: Fix test for pdo_odbc: ext/pdo/tests/bug_ 65946.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100751@lists.php.net to get a copy of this message
Commit: 1a9d09784e459157760ca3217a4bdf769042cdd0 Author: Anatol Belski <ab@php.net> Tue, 2 Jan 2018 11:34:57 +0100 Parents: c0f0a0a8623e2b2a7e571e6c44c1106d411e5d97 Branches: PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1a9d09784e459157760ca3217a4bdf769042cdd0 Log: Fix test for pdo_odbc SqlServer requires parentheses to the TOP argument. Changed paths: M ext/pdo/tests/bug_65946.phpt Diff: diff --git a/ext/pdo/tests/bug_65946.phpt b/ext/pdo/tests/bug_65946.phpt index c636db5..0c9d6ac 100644 --- a/ext/pdo/tests/bug_65946.phpt +++ b/ext/pdo/tests/bug_65946.phpt @@ -22,6 +22,9 @@ switch ($db->getAttribute(PDO::ATTR_DRIVER_NAME)) { // this is a bug, to be addressed separately from adding these tests to pdo_dblib $sql = 'SELECT TOP 1 * FROM test'; break; + case 'odbc': + $sql = 'SELECT TOP (:limit) * FROM test'; + break; case 'firebird': $sql = 'SELECT FIRST :limit * FROM test'; break;

« previous php.cvs (#100751) next »