changeset b7ba7525fd00 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=b7ba7525fd00
description:
        Do not use keyword argument for sequence_next_number SQL

        issue10621
        review342831002
diffstat:

 trytond/backend/postgresql/database.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 086c5714907e -r b7ba7525fd00 trytond/backend/postgresql/database.py
--- a/trytond/backend/postgresql/database.py    Mon Aug 09 12:48:54 2021 +0200
+++ b/trytond/backend/postgresql/database.py    Thu Aug 12 18:35:15 2021 +0200
@@ -718,7 +718,7 @@
                     'SELECT CASE WHEN NOT is_called THEN last_value '
                     'ELSE last_value + increment_by '
                     'END '
-                    'FROM {}').format(sequence=Identifier(name)))
+                    'FROM {}').format(Identifier(name)))
         return cursor.fetchone()[0]
 
     def has_channel(self):

Reply via email to