diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2021-12-14 12:34:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 12:34:30 +0000 |
commit | a4dce5b53dd460e7c6757648ff4a348b490c6213 (patch) | |
tree | 92e9f608c727a246002fffb2ff81b7cc410d6a55 /changelog.d | |
parent | Add missing type hints to synapse.http. (#11571) (diff) | |
download | synapse-a4dce5b53dd460e7c6757648ff4a348b490c6213.tar.xz |
Remove redundant `COALESCE()`s around `COUNT()`s in database queries (#11570)
`COUNT()` never returns `NULL`. A `COUNT(*)` over 0 rows is 0 and a `COUNT(NULL)` is also 0.
Diffstat (limited to 'changelog.d')
-rw-r--r-- | changelog.d/11570.misc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/11570.misc b/changelog.d/11570.misc new file mode 100644 index 0000000000..d9af8bdb05 --- /dev/null +++ b/changelog.d/11570.misc @@ -0,0 +1 @@ +Remove redundant `COALESCE()`s around `COUNT()`s in database queries. |