From 2784a5aedf390ef80514b3de2e0027072494743c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 31 Dec 1999 03:18:43 +0000 Subject: [PATCH] Clean up datatypes and comments for op_class() routine. --- src/backend/utils/cache/lsyscache.c | 9 +++++---- src/include/utils/lsyscache.h | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c index ab9f74c0ae..1c34486b74 100644 --- a/src/backend/utils/cache/lsyscache.c +++ b/src/backend/utils/cache/lsyscache.c @@ -6,7 +6,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.36 1999/11/22 17:56:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.37 1999/12/31 03:18:43 tgl Exp $ * * NOTES * Eventually, the index information should go through here, too. @@ -25,15 +25,16 @@ /* * op_class - * - * Return t iff operator 'opno' is in operator class 'opclass'. + * Return t iff operator 'opid' is in operator class 'opclass' for + * access method 'amopid'. * */ bool -op_class(Oid oprno, int32 opclass, Oid amopid) +op_class(Oid opid, Oid opclass, Oid amopid) { if (HeapTupleIsValid(SearchSysCacheTuple(AMOPOPID, ObjectIdGetDatum(opclass), - ObjectIdGetDatum(oprno), + ObjectIdGetDatum(opid), ObjectIdGetDatum(amopid), 0))) return true; diff --git a/src/include/utils/lsyscache.h b/src/include/utils/lsyscache.h index 3686b13c5f..0d3562f144 100644 --- a/src/include/utils/lsyscache.h +++ b/src/include/utils/lsyscache.h @@ -5,7 +5,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: lsyscache.h,v 1.20 1999/08/16 02:06:23 tgl Exp $ + * $Id: lsyscache.h,v 1.21 1999/12/31 03:18:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -14,7 +14,7 @@ #include "access/htup.h" -extern bool op_class(Oid oprno, int32 opclass, Oid amopid); +extern bool op_class(Oid opid, Oid opclass, Oid amopid); extern char *get_attname(Oid relid, AttrNumber attnum); extern AttrNumber get_attnum(Oid relid, char *attname); extern Oid get_atttype(Oid relid, AttrNumber attnum);