#844186: Clarify merge queries introduced two regressions to the base MergeQuery implementation:

  • The merge query key is used (needlessly) in the fields of the UPDATE query; this is a problem because some databases (like SQL Server) doesn't allow update of identity fields
  • In a corner case, an exception message can be echoed directly to the browser

Comments

damien tournoud’s picture

Status: Active » Needs review
StatusFileSize
new898 bytes
damien tournoud’s picture

StatusFileSize
new2.59 KB

Clarify the documentation via @chx.

damien tournoud’s picture

StatusFileSize
new2.59 KB

Even more clarifications via @chx.

chx’s picture

Status: Needs review » Reviewed & tested by the community

Yes. This makes sense. Even I got confused by the old code. Good that Damien catched this one.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 943042-merge-query-regressions.patch, failed testing.

Crell’s picture

Status: Needs work » Needs review
chx’s picture

Status: Needs review » Reviewed & tested by the community

bot fluke.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.