Better error message.

This commit is contained in:
Ilia Alshanetsky 2004-05-20 18:05:44 +00:00
parent f8d045619a
commit cf33729c20

View File

@ -363,7 +363,7 @@ static PHP_METHOD(PDO, lastInsertId)
PDO_DBH_CLEAR_ERR();
if (!dbh->methods->last_id) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "This driver last inserted id retrieval.");
php_error_docref(NULL TSRMLS_CC, E_WARNING, "This driver does not support last inserted id retrieval.");
} else {
RETURN_LONG(dbh->methods->last_id(dbh TSRMLS_CC));
}