Problem/Motivation

ip_anon module can't figure out how many rows were affected by an update query because Drupal core enables PDO::MYSQL_ATTR_FOUND_ROWS - which means update queries return matched rows rather than affected rows.

Proposed resolution

When a callback needs to run if there were affected rows, we can add a query condition (hostname != 0) to limit the number of matched rows to the affected rows.

CommentFileSizeAuthor
return-affected-rows.patch1.35 KBmfb

Comments

mfb created an issue. See original summary.

  • mfb committed 080b571 on 8.x-1.x
    Issue #3248563 by mfb: Workaround Database::RETURN_AFFECTED not...
mfb’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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