From 06eb713d3b4d71faafd1d60559659a84f5bf89fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9E=97=E4=BC=9F?= Date: Wed, 31 Dec 2025 16:54:30 +0800 Subject: [PATCH 1/2] Close prepared statement --- src/session.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/session.rs b/src/session.rs index a4390fb..a21304b 100644 --- a/src/session.rs +++ b/src/session.rs @@ -132,7 +132,9 @@ impl Session { let start = Instant::now(); let flight_info = if self.prepared { let mut stmt = self.client.prepare(query.to_string(), None).await?; - stmt.execute().await? + let info = stmt.execute().await?; + stmt.close().await?; + info } else { self.client.execute(query.to_string(), None).await? }; From 198b5c0390fe833cf12d878e21c43623185b1dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9E=97=E4=BC=9F?= Date: Wed, 31 Dec 2025 16:54:55 +0800 Subject: [PATCH 2/2] Bump version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b6aaf41..342ff0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/sundy-li/arrow_cli" edition = "2024" license = "Apache-2.0" name = "arrow_cli" -version = "0.2.3" +version = "0.2.4" [dependencies]