Skip to content

Commit 2bf0a0e

Browse files
committed
added NEED_MORE_DATA error message to $errorMessages
1 parent 2d9c29a commit 2bf0a0e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pear/DB.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,12 @@ function errorMessage($value)
351351
DB_ERROR_SYNTAX => 'syntax error',
352352
DB_ERROR_UNSUPPORTED => 'not supported',
353353
DB_ERROR_VALUE_COUNT_ON_ROW => 'value count on row',
354-
DB_ERROR_INVALID_DSN => "invalid DSN",
355-
DB_ERROR_CONNECT_FAILED => "connect failed",
354+
DB_ERROR_INVALID_DSN => 'invalid DSN',
355+
DB_ERROR_CONNECT_FAILED => 'connect failed',
356356
DB_OK => 'no error',
357357
DB_WARNING => 'unknown warning',
358-
DB_WARNING_READ_ONLY => 'read only'
358+
DB_WARNING_READ_ONLY => 'read only',
359+
DB_ERROR_NEED_MORE_DATA => 'insufficient data supplied'
359360
);
360361
}
361362

0 commit comments

Comments
 (0)