File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ Fixed:
151151- relaxed URL designator syntax to allow issue[0]*1 (sf bug 1054523)
152152
153153
154- 2004-??-?? 0.7.12
154+ 2005-05-02 0.7.12
155155Fixed:
156156- handle capitalisation of class names in text hyperlinking (sf bug
157157 1101043)
@@ -163,6 +163,7 @@ Fixed:
163163- hack to fix some anydbm export problems (sf bug 1081454)
164164- ignore AutoReply messages (sf patch 1085051)
165165- fix ZRoundup syntax error (sf bug 1122335)
166+ - fix RDBMS clear() so it resets all class itemid counters
166167
167168
1681692005-01-06 0.7.11
Original file line number Diff line number Diff line change 1- # $Id: back_sqlite.py,v 1.40 2005-02-14 04:37:24 richard Exp $
1+ # $Id: back_sqlite.py,v 1.41 2005-05-02 01:05:15 richard Exp $
22'''Implements a backend for SQLite.
33
44See https://pysqlite.sourceforge.net/ for pysqlite info
@@ -325,12 +325,18 @@ def newid(self, classname):
325325 def setid (self , classname , setid ):
326326 ''' Set the id counter: used during import of database
327327
328- We add one to make it behave like the seqeunces in postgres.
328+ We add one to make it behave like the sequences in postgres.
329329 '''
330330 sql = 'update ids set num=%s where name=%s' % (self .arg , self .arg )
331331 vals = (int (setid )+ 1 , classname )
332332 self .sql (sql , vals )
333333
334+ def clear (self ):
335+ # set the id counters to 0 (setid adds one) so we start at 1
336+ rdbms_common .Database .clear (self )
337+ for cn in self .classes .keys ():
338+ self .setid (cn , 0 )
339+
334340 def create_class (self , spec ):
335341 rdbms_common .Database .create_class (self , spec )
336342 sql = 'insert into ids (name, num) values (%s, %s)'
Original file line number Diff line number Diff line change 1- # $Id: rdbms_common.py,v 1.152 2005-04-28 00:21:42 richard Exp $
1+ # $Id: rdbms_common.py,v 1.153 2005-05-02 01:05:15 richard Exp $
22''' Relational database (SQL) backend common code.
33
44Basics:
@@ -683,7 +683,7 @@ def clear(self):
683683 for cn in self .classes .keys ():
684684 sql = 'delete from _%s' % cn
685685 self .sql (sql )
686- self .setid (cn , 1 )
686+ self .setid (cn , 1 )
687687
688688 #
689689 # Nodes
You can’t perform that action at this time.
0 commit comments