summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-01-02 11:34:57 +0100
committerAnatol Belski <ab@php.net>2018-01-02 11:34:57 +0100
commit1a9d09784e459157760ca3217a4bdf769042cdd0 (patch)
treea14b9ae916b9c6291d4e5ec6aeaee5901a8fcf6c
parentc0f0a0a8623e2b2a7e571e6c44c1106d411e5d97 (diff)
downloadphp-git-1a9d09784e459157760ca3217a4bdf769042cdd0.tar.gz
Fix test for pdo_odbc
SqlServer requires parentheses to the TOP argument.
-rw-r--r--ext/pdo/tests/bug_65946.phpt3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pdo/tests/bug_65946.phpt b/ext/pdo/tests/bug_65946.phpt
index c636db5204..0c9d6ac00b 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;