Skip to content

Commit

Permalink
Fixed SDK build in ydb repo (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gazizonoki authored Aug 27, 2024
1 parent 752d30e commit 777e5a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/client/query/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class TQueryClient::TImpl: public TClientImplCommon<TQueryClient::TImpl>, public
auto request = MakeOperationRequest<ExecuteScriptRequest>(settings);
request.set_exec_mode(::Ydb::Query::ExecMode(settings.ExecMode_));
request.set_stats_mode(::Ydb::Query::StatsMode(settings.StatsMode_));
request.set_pool_id(settings.PoolId_);
request.set_pool_id(TStringType{settings.PoolId_});
request.mutable_script_content()->set_syntax(::Ydb::Query::Syntax(settings.Syntax_));
request.mutable_script_content()->set_text(TStringType{script});
SetDuration(settings.ResultsTtl_, *request.mutable_results_ttl());
Expand Down
2 changes: 1 addition & 1 deletion src/client/query/impl/exec_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ TFuture<std::pair<TPlainStatus, TExecuteQueryProcessorPtr>> StreamExecuteQueryIm
auto request = MakeRequest<Ydb::Query::ExecuteQueryRequest>();
request.set_exec_mode(::Ydb::Query::ExecMode(settings.ExecMode_));
request.set_stats_mode(::Ydb::Query::StatsMode(settings.StatsMode_));
request.set_pool_id(settings.PoolId_);
request.set_pool_id(TStringType{settings.PoolId_});
request.mutable_query_content()->set_text(TStringType{query});
request.mutable_query_content()->set_syntax(::Ydb::Query::Syntax(settings.Syntax_));
if (session.has_value()) {
Expand Down
4 changes: 2 additions & 2 deletions src/client/scheme/scheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ using namespace NThreading;
using namespace Ydb::Scheme;

void TPermissions::SerializeTo(::Ydb::Scheme::Permissions& proto) const {
proto.set_subject(Subject);
proto.set_subject(TStringType{Subject});
for (const auto& name : PermissionNames) {
*proto.mutable_permission_names()->Add() = name;
}
Expand Down Expand Up @@ -130,7 +130,7 @@ void TSchemeEntry::Out(IOutputStream& out) const {
}

void TSchemeEntry::SerializeTo(::Ydb::Scheme::ModifyPermissionsRequest& request) const {
request.mutable_actions()->Add()->set_change_owner(Owner);
request.mutable_actions()->Add()->set_change_owner(TStringType{Owner});
for (const auto& permission : Permissions) {
permission.SerializeTo(*request.mutable_actions()->Add()->mutable_set());
}
Expand Down

0 comments on commit 777e5a9

Please sign in to comment.