Skip to content

Commit

Permalink
backout bbc99def147a. All the other backends were programmed to accom…
Browse files Browse the repository at this point in the history
…odate the skip one nature of postgres sequences
  • Loading branch information
rouilj committed Jan 20, 2025
1 parent cac1477 commit 23165ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ Fixed:
date input. Also add double-click and exit keyboard handlers to
allow copy/paste/editing the text version of the date. (John
Rouillard)
- 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. John Rouillard committed)
- issue1895197 - translated help texts in admin.py not displayed
correctly. (Initial patch tobias-herp, John Rouillard)
- issue2551238 - roundup-server should exit with error if -d
Expand Down
2 changes: 1 addition & 1 deletion roundup/backends/back_postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def newid(self, classname):
return str(self.cursor.fetchone()[0])

def setid(self, classname, setid):
sql = "select setval('_%s_ids', %s, false) from dual" % (classname,
sql = "select setval('_%s_ids', %s) from dual" % (classname,
int(setid))
self.sql(sql)

Expand Down

0 comments on commit 23165ca

Please sign in to comment.