Skip to content

Commit

Permalink
nested transaction is not supported
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Mar 18, 2024
1 parent 4f09d8c commit 5ddd450
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions vdb/lib/cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,6 @@ def store(self, data: list[Vulnerability]):
self.store5(cve5_list)

def store5(self, data: list[CVE]):
self.db_conn.execute("BEGIN")
self.index_conn.execute("BEGIN")
for d in data:
cve_id = d.cveMetadata.cveId
if d.containers.cna and d.containers.cna.affected:
Expand All @@ -391,5 +389,3 @@ def store5(self, data: list[CVE]):
to_purl_vers(affected.vendor, affected.versions)
)
)
self.db_conn.execute("COMMIT")
self.index_conn.execute("COMMIT")

0 comments on commit 5ddd450

Please sign in to comment.