]> granicus.if.org Git - php/commitdiff
Changed constant DB_OK from 0 to 1. So if you set a default error handler,
authorTomas V.V.Cox <cox@php.net>
Thu, 7 Jun 2001 13:44:44 +0000 (13:44 +0000)
committerTomas V.V.Cox <cox@php.net>
Thu, 7 Jun 2001 13:44:44 +0000 (13:44 +0000)
this will improve fetchInto usability [while ($res->fetchInto($row))],
because don't disturb the while loop

pear/DB.php

index ff6166b65217c24d85cf8c7a15226bffd9ba0b10..a6ef7e1ff33140c2aeae931c724beabe776f1a8e 100644 (file)
@@ -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);