- projectB.query("INSERT INTO override (suite, component, type, package, priority, section,maintainer) VALUES (%s, %s, %s, '%s', %s, %s, '')"
- % (suite_id, component_id, type_id, package, priority_id, section_id))
+ m_o = maintainer_override
+ session.execute("""INSERT INTO override (suite, component, type, package,
+ priority, section, maintainer)
+ VALUES (:suiteid, :componentid, :typeid,
+ :package, :priorityid, :sectionid,
+ :maintainer)""",
+ {'suiteid': suite_id, 'componentid': component_id,
+ 'typeid': type_id, 'package': package,
+ 'priorityid': priority_id, 'sectionid': section_id,
+ 'maintainer': m_o})