Skip to content

Commit 1c48eaf

Browse files
committed
Update psycopg2 comment
1 parent cbc47ca commit 1c48eaf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

aikido_zen/sinks/psycopg2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def patch(m):
1313
"""
1414
patching module psycopg2
1515
- patches psycopg2.connect
16-
Warning: cannot set 'execute' attribute of immutable type 'psycopg2.extensions.cursor'
16+
cannot set 'execute' attribute of immutable type 'psycopg2.extensions.cursor',
17+
so we create our own cursor factory to bypass this limitation.
1718
"""
1819
compatible = is_package_compatible(
1920
required_version="2.9.2", packages=["psycopg2", "psycopg2-binary"]

0 commit comments

Comments
 (0)