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:
@ -306,7 +306,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, List<Item> &fields,
|
||||
else
|
||||
sprintf(buff,ER(ER_INSERT_INFO),info.records,info.deleted,
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user