The last insert ID should be an unsigned integer.

Closes GH-6810.
This commit is contained in:
matt 2021-04-26 11:45:37 +02:00 committed by Nikita Popov
parent ec8de47e1e
commit 25dc931d83
3 changed files with 53 additions and 1 deletions

View file

@ -289,7 +289,7 @@ static zend_string *pdo_mysql_last_insert_id(pdo_dbh_t *dbh, const zend_string *
{
pdo_mysql_db_handle *H = (pdo_mysql_db_handle *)dbh->driver_data;
PDO_DBG_ENTER("pdo_mysql_last_insert_id");
PDO_DBG_RETURN(zend_i64_to_str(mysql_insert_id(H->server)));
PDO_DBG_RETURN(zend_u64_to_str(mysql_insert_id(H->server)));
}
/* }}} */