Skip to content

Commit 2edfc17

Browse files
committed
Skip test query parameters for CH < 24.7
1 parent 86d0c84 commit 2edfc17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ut/client_ut.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,10 @@ TEST(SimpleClientTest, issue_335_reconnects_count) {
14901490
}
14911491

14921492
TEST_P(ClientCase, QueryParameters) {
1493+
const auto & server_info = client_->GetServerInfo();
1494+
if (versionNumber(server_info) < versionNumber(24, 7)) {
1495+
GTEST_SKIP() << "Test is skipped since server '" << server_info << "' does not support query parameters" << std::endl;
1496+
}
14931497
const std::string table_name = "test_clickhouse_cpp_query_parameter";
14941498
client_->Execute("CREATE TEMPORARY TABLE IF NOT EXISTS " + table_name + " (id UInt64, name String)");
14951499
{

0 commit comments

Comments
 (0)