Skip to content

Commit ae98c2d

Browse files
committed
fix: issue2550815 - roundup-admin import for postgres causes id to be skipped.
Fixed code so that the id used to set the sequence will be returned and not skipped. (Tom Ekberg diagnosed and supplied the fix.)
1 parent 01735e0 commit ae98c2d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ Fixed:
8181
date input. Also add double-click and exit keyboard handlers to
8282
allow copy/paste/editing the text version of the date. (John
8383
Rouillard)
84+
- issue2550815 - roundup-admin import for postgres causes id to
85+
be skipped. Fixed code so that the id used to set the sequence
86+
will be returned and not skipped. (Tom Ekberg diagnosed and
87+
supplied the fix. John Rouillard committed)
8488

8589
Features:
8690

roundup/backends/back_postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ def newid(self, classname):
548548
return str(self.cursor.fetchone()[0])
549549

550550
def setid(self, classname, setid):
551-
sql = "select setval('_%s_ids', %s) from dual" % (classname,
551+
sql = "select setval('_%s_ids', %s, false) from dual" % (classname,
552552
int(setid))
553553
self.sql(sql)
554554

0 commit comments

Comments
 (0)