Skip to content

Commit

Permalink
z
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Dec 26, 2024
1 parent 42b9714 commit 5b8ea67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bindings/python/src/blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,12 @@ impl BlockingDatabendCursor {
operation: String,
parameters: Option<Bound<'p, PyAny>>,
) -> PyResult<PyObject> {
self.reset();
let conn = self.conn.clone();
if let Some(param) = parameters {
return self.executemany(py, operation, [param].to_vec());
}

self.reset();
let conn = self.conn.clone();
// fetch first row after execute
// then we could finish the query directly if there's no result
let (first, rows) = wait_for_future(py, async move {
Expand Down

0 comments on commit 5b8ea67

Please sign in to comment.