This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/arrow-flight-sql-postgresql.git
The following commit(s) were added to refs/heads/main by this push:
new 7ff327c Add missing FlightCallOptions in query-prepared example (#130)
7ff327c is described below
commit 7ff327c59bcb188b5ff3382e9bff15f7e9403c53
Author: Sutou Kouhei <[email protected]>
AuthorDate: Fri Sep 15 06:12:45 2023 +0900
Add missing FlightCallOptions in query-prepared example (#130)
Closes GH-129
---
example/flight-sql/query-prepared.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/example/flight-sql/query-prepared.cc
b/example/flight-sql/query-prepared.cc
index 621b650..a3e1a87 100644
--- a/example/flight-sql/query-prepared.cc
+++ b/example/flight-sql/query-prepared.cc
@@ -128,7 +128,7 @@ run()
ARROW_RETURN_NOT_OK(i_builder->Append(10));
ARROW_ASSIGN_OR_RAISE(auto record_batch, record_batch_builder->Flush());
ARROW_RETURN_NOT_OK(statement->SetParameters(record_batch));
- ARROW_ASSIGN_OR_RAISE(auto info, statement->Execute());
+ ARROW_ASSIGN_OR_RAISE(auto info, statement->Execute(call_options));
for (const auto& endpoint : info->endpoints())
{
ARROW_ASSIGN_OR_RAISE(auto reader,
@@ -143,7 +143,7 @@ run()
std::cout << chunk.data->ToString() << std::endl;
}
}
- ARROW_RETURN_NOT_OK(statement->Close());
+ ARROW_RETURN_NOT_OK(statement->Close(call_options));
return sql_client->Close();
}
// End query