Skip to content

Commit d5d46a7

Browse files
committed
fix: replace old rows with None
1 parent a02a592 commit d5d46a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ async fn execute(cursor: &Cursor, sql: String, parameters: Option<&PyTuple>) ->
587587
cursor.rows.replace(Some(rows));
588588
} else {
589589
stmt.execute(params).await.map_err(to_py_err)?;
590+
cursor.rows.replace(None);
590591
}
591592

592593
let mut rowcount = cursor.rowcount.borrow_mut();

0 commit comments

Comments
 (0)