cvs: php4 /pear/DB/tests limit.inc

From: Date: Fri, 02 Nov 2001 00:47:26 +0000
Subject: cvs: php4 /pear/DB/tests limit.inc
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1237@lists.php.net to get a copy of this message
cox Thu Nov 1 19:47:26 2001 EDT Modified files: /php4/pear/DB/tests limit.inc Log: simplified the logic of the test Index: php4/pear/DB/tests/limit.inc diff -u php4/pear/DB/tests/limit.inc:1.2 php4/pear/DB/tests/limit.inc:1.3 --- php4/pear/DB/tests/limit.inc:1.2 Thu Nov 1 10:16:11 2001 +++ php4/pear/DB/tests/limit.inc Thu Nov 1 19:47:26 2001 @@ -1,4 +1,5 @@ <?php +error_reporting(E_ALL); function pe($obj) { die($obj->getMessage() . "\n" . $obj->getDebugInfo()); } @@ -13,8 +14,8 @@ for ($i=0; $i<=$numrows+2; $i++) { $dbh->query("INSERT INTO php_limit VALUES('result $i')"); } -for ($i=0; $i <= ($numrows + 2); $i=$i+$count) { - $from = $i; +for ($i = 0; $i <= 3; $i++) { + $from = 10 * $i; $res = $dbh->limitQuery("select * from php_limit", $from, $count); echo "======= From: $from || Number of rows to fetch: $count =======\n"; while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {

« previous php.pear.cvs (#1237) next »