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] 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? };