Skip to content

Commit

Permalink
change sql parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Taylor <[email protected]>
  • Loading branch information
sbtaylor15 committed Mar 22, 2023
1 parent 4150129 commit 345f690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def saveComponentsData(response, compid, bomformat, components_data):
# insert into database
sqlstmt = """
INSERT INTO dm_componentdeps(compid, packagename, packageversion, deptype, name, url, summary, purl, pkgtype)
VALUES (:1, :2, :3, :4, :5, :6, :7, :8, :9) ON CONFLICT ON CONSTRAINT dm_componentdeps_pkey DO NOTHING
VALUES {} ON CONFLICT ON CONSTRAINT dm_componentdeps_pkey DO NOTHING
"""

cursor.executemany(sqlstmt, components_data)
Expand Down

0 comments on commit 345f690

Please sign in to comment.