mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 15:54:37 +01:00
branches/5.1:
Merge r2177 from trunk/: Fix Bug#29157 "UPDATE, changed rows incorrect": Return HA_ERR_RECORD_IS_THE_SAME from ha_innobase::update_row() if no columns were updated.
This commit is contained in:
parent
b284fbc7f8
commit
7f682c9665
1 changed files with 10 additions and 0 deletions
|
@ -3775,6 +3775,16 @@ ha_innobase::update_row(
|
|||
|
||||
error = convert_error_code_to_mysql(error, user_thd);
|
||||
|
||||
if (error == 0 /* success */
|
||||
&& uvect->n_fields == 0 /* no columns were updated */) {
|
||||
|
||||
/* This is the same as success, but instructs
|
||||
MySQL that the row is not really updated and it
|
||||
should not increase the count of updated rows.
|
||||
This is fix for http://bugs.mysql.com/29157 */
|
||||
error = HA_ERR_RECORD_IS_THE_SAME;
|
||||
}
|
||||
|
||||
/* Tell InnoDB server that there might be work for
|
||||
utility threads: */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue