From: Tomas V.V.Cox Date: Thu, 7 Jun 2001 13:44:44 +0000 (+0000) Subject: Changed constant DB_OK from 0 to 1. So if you set a default error handler, X-Git-Tag: PRE_GRANULAR_GARBAGE_FIX~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48920fbb1b62e25b4493026c5cb0a736e8a277aa;p=php Changed constant DB_OK from 0 to 1. So if you set a default error handler, this will improve fetchInto usability [while ($res->fetchInto($row))], because don't disturb the while loop --- diff --git a/pear/DB.php b/pear/DB.php index ff6166b652..a6ef7e1ff3 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -32,7 +32,7 @@ require_once "PEAR.php"; * version of it in DB::errorMessage(). */ -define("DB_OK", 0); +define("DB_OK", 1); define("DB_ERROR", -1); define("DB_ERROR_SYNTAX", -2); define("DB_ERROR_CONSTRAINT", -3);