From 321fd8d9ceca0c36efa34e6b86354d682fd7f551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 21 Apr 2026 15:30:46 +0200 Subject: [PATCH] Do not pass the channel name as parameter to LISTEN call in the queue psycopg3 can not determine the data type. Closes #14792 (grafted from 7fc8e6a10574c04a074f55a8a4e56ec4e07efb74) --HG-- branch : 8.0 --- trytond/trytond/ir/queue_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/ir/queue_.py b/trytond/trytond/ir/queue_.py index 2b9a52227c..e3044e570a 100644 --- a/trytond/trytond/ir/queue_.py +++ b/trytond/trytond/ir/queue_.py @@ -140,7 +140,7 @@ class Queue(ModelSQL): 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):