Skip to content
Snippets Groups Projects
Commit ee48da5f authored by Rawel's avatar Rawel
Browse files

disabled foreign_key_check to include cve_ids

parent bf646a56
No related branches found
No related tags found
No related merge requests found
......@@ -656,8 +656,9 @@ class DBRepository:
"UPDATE `link_fixing_commit_vcc` SET `cve_id` = %(cve_id)s WHERE "
"`fixing_sha` = %(fixing_sha)s AND `mapping_type` = 'Syzkaller';"
)
cursor.execute("SET FOREIGN_KEY_CHECKS = 0;")
cursor.execute(query, {"cve_id": cve_id, "fixing_sha": fixing_sha})
cursor.execute("SET FOREIGN_KEY_CHECKS = 1;")
self.cnx.commit()
except mysql.connector.Error as err:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment