This fixing failing SQLiteBagOStuff::changeTTL() tests when the old
and new expiry column has the same value.
Bug: T229456
Change-Id: Ib7d30115e2084f43b1c195e7bfa1ad5fed9a71d4
}
$mysqli = mysqli_init();
-
- $connFlags = 0;
+ // Make affectedRows() for UPDATE reflect the number of matching rows, regardless
+ // of whether any column values changed. This is what callers want to know and is
+ // consistent with what Postgres, SQLite, and SQL Server return.
+ $connFlags = MYSQLI_CLIENT_FOUND_ROWS;
if ( $this->getFlag( self::DBO_SSL ) ) {
$connFlags |= MYSQLI_CLIENT_SSL;
$mysqli->ssl_set(