mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
Fix #33618
This commit is contained in:
parent
6377c0ccca
commit
168b6500fd
@ -233,9 +233,8 @@ static long mysql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRM
|
||||
static char *pdo_mysql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC)
|
||||
{
|
||||
pdo_mysql_db_handle *H = (pdo_mysql_db_handle *)dbh->driver_data;
|
||||
char *id = NULL;
|
||||
|
||||
*len = spprintf(&id, 0, "%lld", mysql_insert_id(H->server));
|
||||
char *id = php_pdo_int64_to_str(mysql_insert_id(H->server) TSRMLS_CC);
|
||||
*len = strlen(id);
|
||||
return id;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user