1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

A small fix for last_insert_id with multi-row inserts

This commit is contained in:
unknown
2002-08-10 22:08:00 +03:00
parent 72edf480ec
commit 49e4fea6c9

View File

@ -306,7 +306,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, List<Item> &fields,
else else
sprintf(buff,ER(ER_INSERT_INFO),info.records,info.deleted, sprintf(buff,ER(ER_INSERT_INFO),info.records,info.deleted,
thd->cuted_fields); thd->cuted_fields);
::send_ok(&thd->net,info.copied+info.deleted,0L,buff); ::send_ok(&thd->net,info.copied+info.deleted,(ulonglong)id,buff);
} }
DBUG_RETURN(0); DBUG_RETURN(0);