diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2023-07-17 22:17:57 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2023-07-24 19:22:36 +0200 |
commit | 6e0065ad2024ba3c6d38b0d5a325d27769a8cef9 (patch) | |
tree | b1884ad1c55e68acc7cf2f88f8255bc3bf016fa8 /includes/cache/BacklinkCache.php | |
parent | 994e7b145e4692b741709bfdd612f5665318d5dd (diff) | |
download | mediawikicore-6e0065ad2024ba3c6d38b0d5a325d27769a8cef9.tar.gz mediawikicore-6e0065ad2024ba3c6d38b0d5a325d27769a8cef9.zip |
Simplify WHERE conditions with field IS NULL
Reduce raw sql fragments on simple compares
Change-Id: I3f2340dfdbf5197cc22546911e6c5653dc5a6269
Diffstat (limited to 'includes/cache/BacklinkCache.php')
-rw-r--r-- | includes/cache/BacklinkCache.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/cache/BacklinkCache.php b/includes/cache/BacklinkCache.php index 0d3d9b612b7b..849fd788ad92 100644 --- a/includes/cache/BacklinkCache.php +++ b/includes/cache/BacklinkCache.php @@ -305,10 +305,7 @@ class BacklinkCache { $queryBuilder->where( [ "{$prefix}_namespace" => $this->page->getNamespace(), "{$prefix}_title" => $this->page->getDBkey(), - $this->getDB()->makeList( [ - "{$prefix}_interwiki" => '', - "{$prefix}_interwiki IS NULL", - ], LIST_OR ), + "{$prefix}_interwiki" => [ '', null ], ] ); break; case 'imagelinks': |