Skip to content

Commit 381dcbb

Browse files
committed
fix test
1 parent f5e8966 commit 381dcbb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ydb/library/yql/parser/pg_wrapper/ut/codegen_ut.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,8 @@ Y_UNIT_TEST_SUITE(TPgCodegen) {
158158
kernelCtx.SetState(&state);
159159
FmgrInfo finfo;
160160
Zero(state.flinfo);
161-
if (fixed) {
162-
fmgr_info(NPg::LookupProc("date_eq", { 0, 0}).ProcId, &state.flinfo);
163-
} else {
164-
fmgr_info(NPg::LookupProc("textout", { 0} ).ProcId, &state.flinfo);
165-
}
166-
161+
state.ProcDesc = fixed ? &NPg::LookupProc("date_eq", { 0, 0 }) : &NPg::LookupProc("textout", { 0 });
162+
fmgr_info(state.ProcDesc->ProcId, &state.flinfo);
167163
state.context = nullptr;
168164
state.resultinfo = nullptr;
169165
state.fncollation = DEFAULT_COLLATION_OID;

0 commit comments

Comments
 (0)