mirror of
https://github.com/php/php-src.git
synced 2026-04-10 01:23:53 +02:00
@Ported DB to new error reporting scheme
This commit is contained in:
@@ -269,7 +269,7 @@ class DB {
|
||||
DB_ERROR_UNSUPPORTED => "not supported",
|
||||
DB_ERROR_MISMATCH => "mismatch",
|
||||
DB_ERROR_INVALID => "invalid",
|
||||
DB_ERROR_NOT_CAPABLE => "DB implementation not capable",
|
||||
DB_ERROR_NOT_CAPABLE => "DB backend not capable",
|
||||
DB_ERROR_INVALID_NUMBER => "invalid number",
|
||||
DB_ERROR_INVALID_DATE => "invalid date or time",
|
||||
DB_ERROR_DIVZERO => "division by zero",
|
||||
@@ -282,6 +282,9 @@ class DB {
|
||||
DB_WARNING_READ_ONLY => "warning: read only"
|
||||
);
|
||||
}
|
||||
if (DB::isError($value)) {
|
||||
$value = $value->code;
|
||||
}
|
||||
return $errorMessages[$value];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user