Add missing id clause when updating translation

This commit is contained in:
Cédric Krier committed 2008-09-17 11:55:30 +02:00
1 parent 83f555563d
commit 38fe7d7a32
1 file changed
+3 -2
+3 -2
View File
@@ -616,8 +616,9 @@ class TrytondXmlHandler(sax.handler.ContentHandler):
if cursor.rowcount:
trans_id = cursor.fetchone()[0]
cursor.execute('UPDATE ir_translation ' \
'SET src = %s, module = %s',
(to_update[field_name], module))
'SET src = %s, module = %s ' \
'WHERE id = %s',
(to_update[field_name], module, trans_id))
else:
cursor.execute('INSERT INTO ir_translation ' \
'(name, lang, type, src, res_id, ' \