Skip to content

Commit

Permalink
Fixed i/o for pg_proc (#10914)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitstn authored Oct 25, 2024
1 parent bb8be1a commit 7108e37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ydb/library/yql/parser/pg_catalog/catalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3835,6 +3835,9 @@ TString ExportExtensions(const TMaybe<TSet<ui32>>& filter) {

protoProc->SetIsStrict(desc.IsStrict);
protoProc->SetLang(desc.Lang);
protoProc->SetResultType(desc.ResultType);
protoProc->SetReturnSet(desc.ReturnSet);
protoProc->SetKind((ui32)desc.Kind);
}

TVector<TTableInfoKey> extTables;
Expand Down Expand Up @@ -4104,6 +4107,9 @@ void ImportExtensions(const TString& exported, bool typesOnly, IExtensionLoader*
desc.Src = protoProc.GetSrc();
desc.IsStrict = protoProc.GetIsStrict();
desc.Lang = protoProc.GetLang();
desc.ResultType = protoProc.GetResultType();
desc.ReturnSet = protoProc.GetReturnSet();
desc.Kind = (EProcKind)protoProc.GetKind();
for (const auto t : protoProc.GetArgType()) {
desc.ArgTypes.push_back(t);
}
Expand Down
3 changes: 3 additions & 0 deletions ydb/library/yql/parser/pg_catalog/proto/pg_catalog.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ message TPgProc {
optional string VariadicArgName = 13;
optional bool IsStrict = 14;
optional uint32 Lang = 15;
optional uint32 ResultType = 16;
optional bool ReturnSet = 17;
optional uint32 Kind = 18;
}

message TPgTable {
Expand Down

0 comments on commit 7108e37

Please sign in to comment.