Skip to content

Commit 32c6f4c

Browse files

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/reader.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,18 +1097,18 @@ FilterTuple(Filter *filter, TupleFormer *former, int *parsing_field)
10971097
MemoryContextSwitchTo(oldcontext);
10981098
CurrentResourceOwner = oldowner;
10991099

1100+
# if PG_VERSION_NUM < 180000
11001101
/* set fn_extra except the first time call */
11011102
if ( filter->is_first_time_call == false &&
11021103
MemoryContextIsValid(filter->fn_extra.fcontext) &&
11031104
filter->is_funcid_sql) {
11041105
flinfo.fn_extra = (SQLFunctionCache *) palloc0(sizeof(SQLFunctionCache));
11051106
memmove((SQLFunctionCache *)flinfo.fn_extra, &(filter->fn_extra),
11061107
sizeof(SQLFunctionCache));
1107-
} else {
1108-
1109-
filter->is_first_time_call = true;
1110-
}
1111-
#endif
1108+
} else
1109+
#endif /* PG_VERSION_NUM < 180000 */
1110+
filter->is_first_time_call = true;
1111+
#endif /* PG_VERSION_NUM >= 90204 */
11121112

11131113
#if PG_VERSION_NUM >= 120000
11141114
InitFunctionCallInfoData(*fcinfo, &flinfo, filter->nargs,

0 commit comments

Comments
 (0)