From 746b89df163402071d717ca5346372ab0235173b Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 17 May 2005 19:33:03 +0000 Subject: [PATCH] Fixed type mixup. --- ext/pdo_mysql/mysql_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0