cvs: php4 /pear/DB/tests limit.inc
| From: | Thomas V.V.Cox | Date: | Thu, 01 Nov 2001 15:16:11 +0000 |
| Subject: | cvs: php4 /pear/DB/tests limit.inc | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1232@lists.php.net to get a copy of this message | ||
cox Thu Nov 1 10:16:11 2001 EDT
Modified files:
/php4/pear/DB/tests limit.inc
Log:
use fetchRow/fetchInto instead of the deprecated method fetchRowByLimit
(that was never commited) for fetching rows from a limited query
Index: php4/pear/DB/tests/limit.inc
diff -u php4/pear/DB/tests/limit.inc:1.1 php4/pear/DB/tests/limit.inc:1.2
--- php4/pear/DB/tests/limit.inc:1.1 Wed Oct 31 11:01:14 2001
+++ php4/pear/DB/tests/limit.inc Thu Nov 1 10:16:11 2001
@@ -17,7 +17,7 @@
$from = $i;
$res = $dbh->limitQuery("select * from php_limit", $from, $count);
echo "======= From: $from || Number of rows to fetch: $count =======\n";
- while ($row = $res->fetchRowByLimit(DB_FETCHMODE_ASSOC)) {
+ while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {
echo $res->getRowCounter() . '.- ' . $row['a'] . "\n";
}
}