com php-src: Limit size of result set for test query: ext/pdo_dblib/tests/bug_45876.phpt
| From: | Adam Baratz | Date: | Wed, 21 Sep 2016 20:21:33 +0000 |
| Subject: | com php-src: Limit size of result set for test query: ext/pdo_dblib/tests/bug_45876.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94612@lists.php.net to get a copy of this message | ||
Commit: d334d319f0e86eb9c0fe35b7b9922637f4fbfe6a
Author: Adam Baratz <adambaratz@php.net> Wed, 21 Sep 2016 16:21:33 -0400
Parents: 4b9810b9bb5ca5ee46c4402cdcaeebf5849ad1aa
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d334d319f0e86eb9c0fe35b7b9922637f4fbfe6a
Log:
Limit size of result set for test query
This result set can be very large, depending on the database. This change
ensures this test won't be slow.
Changed paths:
M ext/pdo_dblib/tests/bug_45876.phpt
Diff:
diff --git a/ext/pdo_dblib/tests/bug_45876.phpt b/ext/pdo_dblib/tests/bug_45876.phpt
index 9de13ff..2e99e2b 100644
--- a/ext/pdo_dblib/tests/bug_45876.phpt
+++ b/ext/pdo_dblib/tests/bug_45876.phpt
@@ -9,7 +9,7 @@ require dirname(__FILE__) . '/config.inc';
<?php
require dirname(__FILE__) . '/config.inc';
-$stmt = $db->prepare("select ic1.* from information_schema.columns ic1");
+$stmt = $db->prepare("select top 1 ic1.* from information_schema.columns ic1");
$stmt->execute();
var_dump($stmt->getColumnMeta(0));
$stmt = null;