Fix pingback on non-MySQL
authorTim Starling <tstarling@wikimedia.org>
Wed, 1 Aug 2018 01:30:49 +0000 (11:30 +1000)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 29 Aug 2018 01:22:32 +0000 (18:22 -0700)
commit4bd19c04869f86831a1b9f828d007c90f1083b08
tree599d76115f0008efcafae23c62c4c4b99e750b13
parentc6f0a3804dda31ae91cd5cadc1562d841d1fd2cb
Fix pingback on non-MySQL

MySQL has its own implementation of upsert(), but the others rely on
$uniqueIndexes being a field list, not a field/value associative array.
The previous code generated an SQL error when checking for existing
values.

Bug: T200864
Change-Id: Ifb56f7f350fbb84144bc6f5a1dd76939816338a6
(cherry picked from commit ba54f7f90dce0e06ff3c4ad1ec141362f10be9a9)
RELEASE-NOTES-1.31
includes/Pingback.php