diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-11-07 14:00:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 14:00:25 -0500 |
commit | 9738b1c4975b293a1bc25ee27b5527724038baa1 (patch) | |
tree | 43c74a577da2f5eeda0f6a2806910de44163a57a /tests | |
parent | More tests for the simple_* methods. (#16596) (diff) | |
download | synapse-9738b1c4975b293a1bc25ee27b5527724038baa1.tar.xz |
Avoid executing no-op queries. (#16583)
If simple_{insert,upsert,update}_many_txn is called without any data to modify then return instead of executing the query. This matches the behavior of simple_{select,delete}_many_txn.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_base.py | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/tests/storage/test_base.py b/tests/storage/test_base.py |