diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-21 17:22:36 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-21 17:22:36 +0000 |
| commit | e67ff6b6706540f16640e5025864d6063130b502 (patch) | |
| tree | bb6de1596f3741d45e1d1db302aa82e363aa89de /src/backend/catalog/pg_operator.c | |
| parent | b503cbe3194fd21686335bb05eb48d79f3c6384b (diff) | |
| download | postgresql-e67ff6b6706540f16640e5025864d6063130b502.tar.gz | |
fmgr interface mopup work. Use new DatumGetBool and BoolGetDatum
macros where appropriate (the code used to have several different ways
of doing that, including Int32, Int8, UInt8, ...). Remove last few
references to float32 and float64 typedefs --- it's all float4/float8
now. The typedefs themselves should probably stay in c.h for a release
or two, though, to avoid breaking user-written C functions.
Diffstat (limited to 'src/backend/catalog/pg_operator.c')
| -rw-r--r-- | src/backend/catalog/pg_operator.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/catalog/pg_operator.c b/src/backend/catalog/pg_operator.c index 5796b11b98..a0c6dd70a3 100644 --- a/src/backend/catalog/pg_operator.c +++ b/src/backend/catalog/pg_operator.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.50 2000/05/28 17:55:54 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.51 2000/08/21 17:22:35 tgl Exp $ * * NOTES * these routines moved here from commands/define.c and somewhat cleaned up. @@ -262,10 +262,10 @@ OperatorShellMakeWithOpenRelation(Relation pg_operator_desc, namestrcpy(&oname, operatorName); values[i++] = NameGetDatum(&oname); values[i++] = Int32GetDatum(GetUserId()); - values[i++] = (Datum) (uint16) 0; - values[i++] = (Datum) 'b'; /* assume it's binary */ - values[i++] = (Datum) (bool) 0; - values[i++] = (Datum) (bool) 0; + values[i++] = UInt16GetDatum(0); + values[i++] = CharGetDatum('b'); /* assume it's binary */ + values[i++] = BoolGetDatum(false); + values[i++] = BoolGetDatum(false); values[i++] = ObjectIdGetDatum(leftObjectId); /* <-- left oid */ values[i++] = ObjectIdGetDatum(rightObjectId); /* <-- right oid */ values[i++] = ObjectIdGetDatum(InvalidOid); @@ -648,9 +648,9 @@ OperatorDef(char *operatorName, values[i++] = NameGetDatum(&oname); values[i++] = Int32GetDatum(GetUserId()); values[i++] = UInt16GetDatum(precedence); - values[i++] = leftTypeName ? (rightTypeName ? 'b' : 'r') : 'l'; - values[i++] = Int8GetDatum(isLeftAssociative); - values[i++] = Int8GetDatum(canHash); + values[i++] = CharGetDatum(leftTypeName ? (rightTypeName ? 'b' : 'r') : 'l'); + values[i++] = BoolGetDatum(isLeftAssociative); + values[i++] = BoolGetDatum(canHash); values[i++] = ObjectIdGetDatum(leftTypeId); values[i++] = ObjectIdGetDatum(rightTypeId); |
