Skip to content

Commit 23165ca

Browse files
committed
backout bbc99def147a. All the other backends were programmed to accomodate the skip one nature of postgres sequences
1 parent cac1477 commit 23165ca

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

CHANGES.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ 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)
8884
- issue1895197 - translated help texts in admin.py not displayed
8985
correctly. (Initial patch tobias-herp, John Rouillard)
9086
- issue2551238 - roundup-server should exit with error if -d

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, false) from dual" % (classname,
551+
sql = "select setval('_%s_ids', %s) from dual" % (classname,
552552
int(setid))
553553
self.sql(sql)
554554

0 commit comments

Comments
 (0)