Since gerrit 143384 the write query for the debug log goes through DatabaseBase::generalizeSQL which mangle numbers in table names:
DatabaseBase::query: Writes done: DELETE FROM lNn_cache WHERE lc_lang = 'X'
Should only change values, not table names.
Version: 1.24rc
Severity: normal