comparison roundup/backends/rdbms_common.py @ 7007:05d81de0d92d

in clear() clear journal tables as well. Match clear in back_anydbm.
author John Rouillard <rouilj@ieee.org>
date Fri, 07 Oct 2022 13:15:33 -0400
parents 98d72d4bb489
children f524ddc27af8
comparison
equal deleted inserted replaced
7006:11e2b0b1cc71 7007:05d81de0d92d
964 "nuke from orbit" behaviour in the dbs. 964 "nuke from orbit" behaviour in the dbs.
965 """ 965 """
966 logging.getLogger('roundup.hyperdb.backend').info('clear') 966 logging.getLogger('roundup.hyperdb.backend').info('clear')
967 for cn in self.classes: 967 for cn in self.classes:
968 sql = 'delete from _%s' % cn 968 sql = 'delete from _%s' % cn
969 self.sql(sql)
970 sql = 'delete from %s__journal' % cn
969 self.sql(sql) 971 self.sql(sql)
970 972
971 # 973 #
972 # Nodes 974 # Nodes
973 # 975 #

Roundup Issue Tracker: http://roundup-tracker.org/