details:   https://code.tryton.org/tryton/commit/7fc8e6a10574
branch:    default
user:      Cédric Krier <[email protected]>
date:      Tue Apr 21 15:30:46 2026 +0200
description:
        Do not pass the channel name as parameter to LISTEN call in the queue

        psycopg3 can not determine the data type.

        Closes #14792
diffstat:

 trytond/trytond/ir/queue_.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e47e55822e32 -r 7fc8e6a10574 trytond/trytond/ir/queue_.py
--- a/trytond/trytond/ir/queue_.py      Tue Apr 21 12:28:49 2026 +0200
+++ b/trytond/trytond/ir/queue_.py      Tue Apr 21 15:30:46 2026 +0200
@@ -140,7 +140,7 @@
                 seconds, = row
 
         if not task_id and database.has_channel():
-            cursor.execute('LISTEN "%s"', (cls.__name__,))
+            cursor.execute('LISTEN "%s"' % cls.__name__)
         return task_id, seconds
 
     def run(self):

Reply via email to