mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Better error message.
This commit is contained in:
parent
f8d045619a
commit
cf33729c20
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue