Skip to content

Commit 64281e9

Browse files
committed
Added new parameter to all execute method. Now it's possible to turn off statement preparation
1 parent 3c57931 commit 64281e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/driver/transaction.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,7 @@ impl Transaction {
971971
parameters: Option<&'a PyAny>,
972972
fetch_number: Option<usize>,
973973
scroll: Option<bool>,
974+
prepared: Option<bool>,
974975
) -> RustPSQLDriverPyResult<Cursor> {
975976
let mut params: Vec<PythonDTO> = vec![];
976977
if let Some(parameters) = parameters {
@@ -984,7 +985,7 @@ impl Transaction {
984985
format!("cur{}", self.cursor_num),
985986
scroll,
986987
fetch_number.unwrap_or(10),
987-
true,
988+
prepared.unwrap_or(true),
988989
)))
989990
}
990991
}

0 commit comments

Comments
 (0)