Skip to content

Commit 9891365

Browse files
author
James William Pye
committed
Allow the Statement class to be specified.
1 parent 2cd1898 commit 9891365

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

postgresql/driver/pq3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2319,8 +2319,9 @@ def xact(self, isolation = None, mode = None):
23192319
def prepare(self,
23202320
sql_statement_string : str,
23212321
statement_id = None,
2322+
Class = Statement
23222323
) -> Statement:
2323-
ps = Statement(self, statement_id, sql_statement_string)
2324+
ps = Class(self, statement_id, sql_statement_string)
23242325
ps._init()
23252326
ps._fini()
23262327
return ps

0 commit comments

Comments
 (0)