Bug #22813 | replace: change the internal behaviour from delete+insert to update | ||
---|---|---|---|
Submitted: | 29 Sep 2006 7:05 | Modified: | 29 Sep 2006 16:37 |
Reporter: | Maciej Pilichowski | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | 5.0.24a | OS: | Linux (opensuse 10.0) |
Assigned to: | CPU Architecture: | Any |
[29 Sep 2006 7:05]
Maciej Pilichowski
[29 Sep 2006 10:07]
Martin Friebe
please see also bug #13479 , the situation was discussed there.
[29 Sep 2006 10:39]
Maciej Pilichowski
Thanks for the link, the report you mentioned is started about something different however final conclusion is not valid for 5.0.24a. In this version server works as described in documentation and replace = delete + insert.
[29 Sep 2006 15:16]
Valeriy Kravchuk
I do not think this feature may be implemented in 5.0.x. We have a documented, intended and consistent behaviour (even if not the best possible one) there, and no real reasons to change it "back" in the next version again.
[29 Sep 2006 16:15]
Martin Friebe
on reflection, I think that the described feature is what "insert on duplicate key update" does. Therefore the current implementation covers for both scenarios. replace = insert OR delete and insert insert on dup... = insert OR update
[29 Sep 2006 16:32]
Maciej Pilichowski
Thank you for the answer, mmm, it is a pity -- changing/adding data should not involve deleting (triggers problem -- I am curious if the design of current replace behaviour is dated before or after trigger feature). However, I hope I'll see it someday, not necessarily in 5.0.x line, maybe in 5.1.x? Would be great.
[29 Sep 2006 16:37]
Maciej Pilichowski
Martin, thank you for the tip, in that case is possible to make a workaround and avoid deleting. Now I check the triggers to be sure :-)