diff options
Diffstat (limited to 'src/backend/executor/nodeGroup.c')
-rw-r--r-- | src/backend/executor/nodeGroup.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/backend/executor/nodeGroup.c b/src/backend/executor/nodeGroup.c index e98819a5d83..e4ede51852a 100644 --- a/src/backend/executor/nodeGroup.c +++ b/src/backend/executor/nodeGroup.c @@ -15,7 +15,7 @@ * locate group boundaries. * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.40 2001/01/24 19:42:54 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.41 2001/02/16 03:16:57 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -495,16 +495,13 @@ execTuplesMatchPrepare(TupleDesc tupdesc, { AttrNumber att = matchColIdx[i]; Oid typid = tupdesc->attrs[att - 1]->atttypid; - Operator eq_operator; - Form_pg_operator pgopform; + Oid eq_function; - eq_operator = oper("=", typid, typid, true); - if (!HeapTupleIsValid(eq_operator)) + eq_function = compatible_oper_funcid("=", typid, typid, true); + if (!OidIsValid(eq_function)) elog(ERROR, "Unable to identify an equality operator for type '%s'", typeidTypeName(typid)); - pgopform = (Form_pg_operator) GETSTRUCT(eq_operator); - fmgr_info(pgopform->oprcode, &eqfunctions[i]); - ReleaseSysCache(eq_operator); + fmgr_info(eq_function, &eqfunctions[i]); } return eqfunctions; |