Commit c5aaba2c authored by Bruce Momjian's avatar Bruce Momjian

In src/backend/catalog/pg_operator.c in OperatorDef, there

are three SearchSysCacheTuple(PRONAME,...) calls that use three
different macros to convert the typeId array of Oids.

Darren King
parent df0eee99
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.7 1996/11/30 18:06:03 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.8 1996/12/26 17:46:07 momjian Exp $
*
* NOTES
* these routines moved here from commands/define.c and somewhat cleaned up.
......@@ -551,7 +551,7 @@ OperatorDef(char *operatorName,
tup = SearchSysCacheTuple(PRONAME,
PointerGetDatum(restrictionName),
Int32GetDatum(5),
ObjectIdGetDatum(typeId),
PointerGetDatum(typeId),
0);
if (!HeapTupleIsValid(tup))
func_error("OperatorDef", restrictionName, 5, typeId);
......@@ -575,7 +575,7 @@ OperatorDef(char *operatorName,
tup = SearchSysCacheTuple(PRONAME,
PointerGetDatum(joinName),
Int32GetDatum(5),
Int32GetDatum(typeId),
PointerGetDatum(typeId),
0);
if (!HeapTupleIsValid(tup))
func_error("OperatorDef", joinName, 5, typeId);
......
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