From: Ilia Alshanetsky Date: Tue, 17 May 2005 19:33:03 +0000 (+0000) Subject: Fixed type mixup. X-Git-Tag: php-5.0.1b1~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=746b89df163402071d717ca5346372ab0235173b;p=php Fixed type mixup. --- diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index 4e1ab8a822..4be0f2dab2 100755 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -156,7 +156,7 @@ static char *pdo_mysql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned pdo_mysql_db_handle *H = (pdo_mysql_db_handle *)dbh->driver_data; char *id = NULL; - *len = spprintf(&id, 0, "%ld", mysql_insert_id(H->server)); + *len = spprintf(&id, 0, "%lld", mysql_insert_id(H->server)); return id; }