Mercurial > p > roundup > code
changeset 8298:cfa7d43a3658
backout bbc99def147a. All the other backends were programmed to accomodate the skip one nature of postgres sequences
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 20 Jan 2025 16:32:39 -0500 |
| parents | 03513f5066f3 |
| children | 43899d99fc4d |
| files | CHANGES.txt roundup/backends/back_postgresql.py |
| diffstat | 2 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Mon Jan 20 15:51:53 2025 -0500 +++ b/CHANGES.txt Mon Jan 20 16:32:39 2025 -0500 @@ -81,10 +81,6 @@ 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
--- a/roundup/backends/back_postgresql.py Mon Jan 20 15:51:53 2025 -0500 +++ b/roundup/backends/back_postgresql.py Mon Jan 20 16:32:39 2025 -0500 @@ -548,7 +548,7 @@ 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)
