[7.0] mail, SQL query parameters should be a tuple, list or dict

Bug #1206105 reported by bruno bottacini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenUpgrade Addons
Fix Released
Medium
Stefan Rijnhart (Opener)

Bug Description

i get this error:
OpenUpgrade: mail: error in migration script mail/migrations/7.0.1.0/post-migration.py: SQL query parameters should be a tuple, list or dict;

i think row 52 should be:
            cr.execute("UPDATE mail_message SET body = '%s' WHERE id = %s" % (body, row[0]))

Related branches

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thanks, I think you are right! I submitted the fix that you proposed for review.

Changed in openupgrade-addons:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Stefan Rijnhart (Therp) (stefan-therp)
Changed in openupgrade-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.