Fix sequence of arguments in UPDATE clause in migration of binary fields

issue2289
This commit is contained in:
Mathias Behrle
2011-11-16 14:05:21 +01:00
parent 9abec606da
commit eaeab2e510
+1 -1
View File
@@ -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