Skip to content

Commit 283b350

Browse files
Gazizonokigithub-actions[bot]
authored andcommitted
[C++ SDK] Fixed basic example test old YDB versions (#23734)
1 parent 9fce861 commit 283b350

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/last_commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
debe2d49e5446bccc55f1043b76cb79eb09e302c
1+
a1abe1a8139be6a6188d79503a63aa2e5068c6c1

tests/integration/basic_example/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ static void ValidateResultSet(const std::vector<NYdb::TColumn>& columns,
1212
const std::vector<std::vector<NYdb::TValue>>& values,
1313
const NYdb::TResultSet& rs) {
1414
Ydb::ResultSet protoResultSet;
15-
protoResultSet.set_format(Ydb::ResultSet::FORMAT_VALUE);
15+
if (auto version = std::getenv("YDB_VERSION"); !version || std::string(version) == "trunk") {
16+
protoResultSet.set_format(Ydb::ResultSet::FORMAT_VALUE);
17+
}
1618

1719
for (const auto& column : columns) {
1820
auto* protoColumn = protoResultSet.add_columns();

0 commit comments

Comments
 (0)