| Bug #130 | Replace reports wrong stats if done by SELECT from table. | ||
|---|---|---|---|
| Submitted: | 7 Mar 2003 0:32 | Modified: | 28 Apr 2003 1:25 |
| Reporter: | Peter Zaitsev (Basic Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 4.0.11 | OS: | |
| Assigned to: | Oleksandr Byelkin | CPU Architecture: | Any |
[7 Mar 2003 0:32]
Peter Zaitsev
[28 Apr 2003 1:25]
Oleksandr Byelkin
--- 1.95/sql/sql_insert.cc Sun Mar 16 16:28:28 2003
+++ 1.96/sql/sql_insert.cc Sat Apr 26 15:53:08 2003
@@ -1392,7 +1392,7 @@
thd->cuted_fields);
if (last_insert_id)
thd->insert_id(last_insert_id); // For update log
- ::send_ok(&thd->net,info.copied,last_insert_id,buff);
+ ::send_ok(&thd->net,info.copied+info.deleted,last_insert_id,buff);
mysql_update_log.write(thd,thd->query,thd->query_length);
return 0;
}
