]> granicus.if.org Git - php/commitdiff
* fixed Oracle tests, fixed some bugs in DB_oci8, all tests but
authorStig Bakken <ssb@php.net>
Fri, 23 Mar 2001 01:15:05 +0000 (01:15 +0000)
committerStig Bakken <ssb@php.net>
Fri, 23 Mar 2001 01:15:05 +0000 (01:15 +0000)
  errorNative() pass now (but that may be a bug in the test :-)
* implemented numRows() emulation in DB_oci8 that is available
  in "optimize portability" mode only

pear/DB.php
pear/PEAR.php.in

index ee6b8148b578a9d53d61696863efdeb9efb356e9..06eee72fa395104442ddc78d2773a7679ecbca43 100644 (file)
@@ -56,6 +56,7 @@ define("DB_ERROR_NEED_MORE_DATA",     -20);
 define("DB_ERROR_NOT_LOCKED",         -21);
 define("DB_ERROR_VALUE_COUNT_ON_ROW", -22);
 define("DB_ERROR_INVALID_DSN",        -23);
+define("DB_ERROR_CONNECT_FAILED",     -24);
 
 /*
  * Warnings are not detected as errors by DB::isError(), and are not
@@ -326,6 +327,8 @@ class DB
                 DB_ERROR_SYNTAX             => 'syntax error',
                 DB_ERROR_UNSUPPORTED        => 'not supported',
                 DB_ERROR_VALUE_COUNT_ON_ROW => 'value count on row',
+                DB_ERROR_INVALID_DSN        => "invalid DSN",
+                DB_ERROR_CONNECT_FAILED     => "connect failed",
                 DB_OK                       => 'no error',
                 DB_WARNING                  => 'unknown warning',
                 DB_WARNING_READ_ONLY        => 'read only'
index 9ff0e54619e6994d82daf0260f6d8a95bcaed9d3..29b77e7f2e4f30a42b9d31685d6d7f87f7f61b88 100644 (file)
@@ -513,12 +513,12 @@ class PEAR_Error
             $modes[] = "return";
         }
         return sprintf('[%s: message="%s" code=%d mode=%s level=%s prefix="%s" '.
-                       'prepend="%s" append="%s" debug="%s"]',
+                       'prepend="%s" append="%s" info="%s"]',
                        get_class($this), $this->message, $this->code,
                        implode("|", $modes), $levels[$this->level],
                        $this->error_message_prefix,
                        $this->error_prepend, $this->error_append,
-                       $this->debuginfo);
+                       $this->userinfo);
     }
 
     // }}}