]> granicus.if.org Git - postgresql/blobdiff - src/tutorial/funcs.c
Update copyright for 2006. Update scripts.
[postgresql] / src / tutorial / funcs.c
index d2c123a0094be295d2f8986cdca0d1ece2a8edae..a988ad431b2d2c8457380d6cdf3688a920cef6e2 100644 (file)
@@ -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;
@@ -102,6 +102,6 @@ c_overpaid(TupleTableSlot *t,       /* the current instance of EMP */
 
        salary = DatumGetInt32(GetAttributeByName(t, "salary", &isnull));
        if (isnull)
-               return (false);
+               return false;
        return salary > limit;
 }