- SET priority=%d
- WHERE package=%s
- AND override.type != %d
- AND suite = (SELECT id FROM suite WHERE suite_name=%s)""" % (
- newprioid,
- pg._quote(package,"str"), database.get_override_type_id("dsc"),
- pg._quote(suite,"str") ))
- Logger.log(["changed priority",package,oldpriority,newpriority])
+ SET priority = :newprioid
+ WHERE package = :package
+ AND override.type != :otypedsc
+ AND suite = (SELECT id FROM suite WHERE suite_name = :suite)""",
+ {'newprioid': newprioid, 'package': package,
+ 'otypedsc': dsc_otype_id, 'suite': suite})
+
+ Logger.log(["changed priority", package, oldpriority, newpriority])