Whole file

msiemens/tinydb

The author described this change as fix bug where LRU cache is not cleared on delete. It counts as a record because the check below fails on the code as it stood at 914a7d0d5 and passes on 9c7977b25, with nothing else changed between the two runs.

Fix saved2014-07-26
Sharing licenceMIT · LICENSE
Change size+1 0

What the code was meant to do, written into the code itself as a save note

fix bug where LRU cache is not cleared on delete

The change

378378 Clear query cache.
379379 """
380380 self._queries_cache = {}
381+ self._lru = []
381382
382383 def __enter__(self):
383384 """

The check that tells the two apart

failpass·tests/test_tables.py::test_lru_cache

Check file tests/test_tables.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it914a7d0d55edd561f169c85afaf6632fdd779f79
Broken version dated2014-07-25
Moduletinydb.database
Units changedTable
Fingerprintce9d9e073cc4f334
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in msiemens/tinydb