Skip to content

Commit

Permalink
use %s for sql params
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 c66646e commit 7dac168
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 {} ON CONFLICT ON CONSTRAINT dm_componentdeps_pkey DO NOTHING
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s) ON CONFLICT ON CONSTRAINT dm_componentdeps_pkey DO NOTHING
"""

cursor.executemany(sqlstmt, components_data)
Expand Down

0 comments on commit 7dac168

Please sign in to comment.