diff options
Diffstat (limited to 'src/tutorial')
| -rw-r--r-- | src/tutorial/funcs.c | 4 | ||||
| -rw-r--r-- | src/tutorial/funcs_new.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tutorial/funcs.c b/src/tutorial/funcs.c index d2c123a0094..5e8ad6ee707 100644 --- a/src/tutorial/funcs.c +++ b/src/tutorial/funcs.c @@ -22,7 +22,7 @@ float8 *add_one_float8(float8 *arg); Point *makepoint(Point *pointx, Point *pointy); text *copytext(text *t); text *concat_text(text *arg1, text *arg2); -bool c_overpaid(TupleTableSlot *t, /* the current instance of EMP */ +bool c_overpaid(HeapTupleHeader t, /* the current instance of EMP */ int32 limit); @@ -94,7 +94,7 @@ concat_text(text *arg1, text *arg2) /* Composite types */ bool -c_overpaid(TupleTableSlot *t, /* the current instance of EMP */ +c_overpaid(HeapTupleHeader t, /* the current instance of EMP */ int32 limit) { bool isnull; diff --git a/src/tutorial/funcs_new.c b/src/tutorial/funcs_new.c index c9413096bcf..e548b85ee41 100644 --- a/src/tutorial/funcs_new.c +++ b/src/tutorial/funcs_new.c @@ -115,7 +115,7 @@ PG_FUNCTION_INFO_V1(c_overpaid); Datum c_overpaid(PG_FUNCTION_ARGS) { - TupleTableSlot *t = (TupleTableSlot *) PG_GETARG_POINTER(0); + HeapTupleHeader t = PG_GETARG_HEAPTUPLEHEADER(0); int32 limit = PG_GETARG_INT32(1); bool isnull; int32 salary; |
