fix: dispatch delete before DBPools events

This commit is contained in:
yumoqing 2026-05-19 01:12:48 +08:00
parent 171486efcd
commit 23769535cd

View File

@ -680,6 +680,7 @@ class SQLor(object):
sql = 'delete from %s.%s where %s' % (self.dbname, tablename,c_str) sql = 'delete from %s.%s where %s' % (self.dbname, tablename,c_str)
rf = RegisterFunction() rf = RegisterFunction()
rfname = f'{self.dbname}:{tablename}:d:before' rfname = f'{self.dbname}:{tablename}:d:before'
await self.dbpools.dispatch(rfname, ns)
ret = await rf.exe(rfname, ns) ret = await rf.exe(rfname, ns)
if isinstance(ret, dict): if isinstance(ret, dict):
ns.update(ret) ns.update(ret)