From eaeab2e510403fd62c4e38146c722ec658125cf9 Mon Sep 17 00:00:00 2001 From: Mathias Behrle Date: Wed, 16 Nov 2011 14:05:21 +0100 Subject: [PATCH] Fix sequence of arguments in UPDATE clause in migration of binary fields issue2289 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index 10c1acf279..a2de0e3a86 100644 --- a/invoice.py +++ b/invoice.py @@ -197,7 +197,7 @@ class Invoice(ModelWorkflow, ModelSQL, ModelView): report = base64.decodestring(report) cursor.execute('UPDATE "' + self._table + '" ' 'SET invoice_report_cache = %s ' - 'WHERE id = %s', (invoice_id, report)) + 'WHERE id = %s', (report, invoice_id)) table.drop_column('invoice_report') # Add index on create_date