Commit 96cfcadd authored by Peter Eisentraut's avatar Peter Eisentraut
parent ac15b499
...@@ -259,7 +259,7 @@ struct user_args ...@@ -259,7 +259,7 @@ struct user_args
* ------------------------------------------------------ * ------------------------------------------------------
*/ */
static Datum static Datum
bt_page_print_tuples(FuncCallContext *fctx, struct user_args *uargs) bt_page_print_tuples(struct user_args *uargs)
{ {
Page page = uargs->page; Page page = uargs->page;
OffsetNumber offset = uargs->offset; OffsetNumber offset = uargs->offset;
...@@ -498,7 +498,7 @@ bt_page_items(PG_FUNCTION_ARGS) ...@@ -498,7 +498,7 @@ bt_page_items(PG_FUNCTION_ARGS)
if (fctx->call_cntr < fctx->max_calls) if (fctx->call_cntr < fctx->max_calls)
{ {
result = bt_page_print_tuples(fctx, uargs); result = bt_page_print_tuples(uargs);
uargs->offset++; uargs->offset++;
SRF_RETURN_NEXT(fctx, result); SRF_RETURN_NEXT(fctx, result);
} }
...@@ -582,7 +582,7 @@ bt_page_items_bytea(PG_FUNCTION_ARGS) ...@@ -582,7 +582,7 @@ bt_page_items_bytea(PG_FUNCTION_ARGS)
if (fctx->call_cntr < fctx->max_calls) if (fctx->call_cntr < fctx->max_calls)
{ {
result = bt_page_print_tuples(fctx, uargs); result = bt_page_print_tuples(uargs);
uargs->offset++; uargs->offset++;
SRF_RETURN_NEXT(fctx, result); SRF_RETURN_NEXT(fctx, result);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment