Skip to content

Commit 42c7f75

Browse files
dcherednikGazizonoki
authored andcommitted
Moved "Fix optional<bool> flag for c++ sdk." commit from ydb repo
1 parent 24d974c commit 42c7f75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/client/table/table.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ class TTableDescription::TImpl {
268268

269269
// columns
270270
for (const auto& col : proto.columns()) {
271-
Columns_.emplace_back(col.name(), col.type(), col.family(), col.not_null());
271+
std::optional<bool> not_null;
272+
if (col.has_not_null()) {
273+
not_null = col.not_null();
274+
}
275+
Columns_.emplace_back(col.name(), col.type(), col.family(), not_null);
272276
}
273277

274278
// indexes

0 commit comments

Comments
 (0)