dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c4f47c
)
Fix pingback on non-MySQL
author
Tim Starling
<tstarling@wikimedia.org>
Wed, 1 Aug 2018 01:30:49 +0000
(11:30 +1000)
committer
Tim Starling
<tstarling@wikimedia.org>
Wed, 1 Aug 2018 01:33:19 +0000
(11:33 +1000)
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
includes/Pingback.php
patch
|
blob
|
history
diff --git
a/includes/Pingback.php
b/includes/Pingback.php
index
ee608c2
..
8d7c3b6
100644
(file)
--- a/
includes/Pingback.php
+++ b/
includes/Pingback.php
@@
-99,7
+99,7
@@
class Pingback {
return $dbw->upsert(
'updatelog',
[ 'ul_key' => $this->key, 'ul_value' => $timestamp ],
- [ 'ul_key'
=> $this->key
],
+ [ 'ul_key' ],
[ 'ul_value' => $timestamp ],
__METHOD__
);