cvs: pear /DB/tests/driver bug22328.phpt
| From: | Tomas V.V.Cox | Date: | Mon, 23 Jun 2003 00:01:58 +0000 |
| Subject: | cvs: pear /DB/tests/driver bug22328.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-11128@lists.php.net to get a copy of this message | ||
cox Sun Jun 22 20:01:58 2003 EDT
Added files:
/pear/DB/tests/driver bug22328.phpt
Log:
Added first bug specific test
Index: pear/DB/tests/driver/bug22328.phpt
+++ pear/DB/tests/driver/bug22328.phpt
--TEST--
DB_driver::bug22328
--SKIPIF--
<?php chdir(dirname(__FILE__)); require "skipif.inc"; ?>
--FILE--
<?php
require './connect.inc';
$dbh->setErrorHandling(PEAR_ERROR_RETURN);
$res = $dbh->query('select * from php_limit');
$error = 0;
while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {
if (DB::isError($row) && $error) {
die('bug');
}
$res2 = $dbh->query("FAKE QUERY");
if (!DB::isError($res2)) {
die('bug');
}
$error = true;
}
?>
--EXPECT--