mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
Better error message.
This commit is contained in:
parent
f8d045619a
commit
cf33729c20
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user