Make "MySQL affected row count" consistent to other DBMSes 

"UPDATE t SET a = 1" now returns the number of rows that have a = 1 instead of the number of rows that have been updated to a = 1.

Inspired by https://github.com/phpbb/phpbb/pull/2492
Largely replaces #8432 (the tests should probably be kept)

@butonic @nickvergessen @PVince81 @DeepDiver1975 @icewind1991