com php-src: Merge branch 'PHP-7.1' into PHP-7.2: ext/pdo/tests /bug_65946.phpt

From: Date: Tue, 02 Jan 2018 10:39:09 +0000
Subject: com php-src: Merge branch 'PHP-7.1' into PHP-7.2: ext/pdo/tests /bug_65946.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100750@lists.php.net to get a copy of this message
Commit: 08d06f7d4f1834a505f329ef3464c44431462ff8 Author: Anatol Belski <ab@php.net> Tue, 2 Jan 2018 11:39:09 +0100 Parents: 4380ba7f9c75ace7f879835be024fac76275dbb0 1a9d09784e459157760ca3217a4bdf769042cdd0 Branches: PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=08d06f7d4f1834a505f329ef3464c44431462ff8 Log: Merge branch 'PHP-7.1' into PHP-7.2 * PHP-7.1: Fix test for pdo_odbc Changed paths: MM ext/pdo/tests/bug_65946.phpt Diff: diff --cc ext/pdo/tests/bug_65946.phpt index 76a4e8d,0c9d6ac..9318428 --- a/ext/pdo/tests/bug_65946.phpt +++ b/ext/pdo/tests/bug_65946.phpt @@@ -18,8 -18,13 +18,11 @@@ $db->exec('CREATE TABLE test(id int)') $db->exec('INSERT INTO test VALUES(1)'); switch ($db->getAttribute(PDO::ATTR_DRIVER_NAME)) { case 'dblib': - // if :limit is used, the value will be quoted as '1', which is invalid syntax - // this is a bug, to be addressed separately from adding these tests to pdo_dblib - $sql = 'SELECT TOP 1 * FROM test'; + $sql = 'SELECT TOP :limit * FROM test'; break; + case 'odbc': + $sql = 'SELECT TOP (:limit) * FROM test'; + break; case 'firebird': $sql = 'SELECT FIRST :limit * FROM test'; break;

« previous php.cvs (#100750) next »