Skip to content

Commit

Permalink
fix(client-cpp): test reopen link
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangmy21 committed Dec 1, 2024
1 parent 3d3d465 commit 5ced356
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iotdb-client/client-cpp/src/main/TableSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ unique_ptr<SessionDataSet> TableSession::executeQueryStatement(const string &sql
string TableSession::getDatabase() {
return session->getDatabase();
}
void TableSession::open(bool enableRPCCompression) {
session->open(enableRPCCompression);
}
void TableSession::close() {
session->close();
}
1 change: 1 addition & 0 deletions iotdb-client/client-cpp/src/main/TableSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class TableSession {
unique_ptr<SessionDataSet> executeQueryStatement(const std::string& sql);
unique_ptr<SessionDataSet> executeQueryStatement(const std::string& sql, int64_t timeoutInMs);
string getDatabase();
void open(bool enableRPCCompression = false);
void close();
};

Expand Down
1 change: 1 addition & 0 deletions iotdb-client/client-cpp/src/test/main_Relational.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct SessionListener : Catch::TestEventListenerBase {

void testCaseStarting(Catch::TestCaseInfo const &testInfo) override {
// Perform some setup before a test case is run
session->open();
}

void testCaseEnded(Catch::TestCaseStats const &testCaseStats) override {
Expand Down

0 comments on commit 5ced356

Please sign in to comment.