diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-03-07 16:35:41 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-03-07 16:35:41 +0000 |
commit | b976b8af803fb1b3d9ab6a5ae5e13f3a9a90da32 (patch) | |
tree | be92fa181752e2769ea63315b21a6db472a2c3c9 /src/backend/parser/parse_coerce.c | |
parent | 609f71b760d64f8ff512a5caa23d4803f664bd84 (diff) | |
download | postgresql-b976b8af803fb1b3d9ab6a5ae5e13f3a9a90da32.tar.gz postgresql-b976b8af803fb1b3d9ab6a5ae5e13f3a9a90da32.zip |
Back out domain patch until it works properly.
Diffstat (limited to 'src/backend/parser/parse_coerce.c')
-rw-r--r-- | src/backend/parser/parse_coerce.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/backend/parser/parse_coerce.c b/src/backend/parser/parse_coerce.c index 8586d5e5cca..172142e33dc 100644 --- a/src/backend/parser/parse_coerce.c +++ b/src/backend/parser/parse_coerce.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.65 2002/03/06 20:34:51 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.66 2002/03/07 16:35:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -38,7 +38,6 @@ coerce_type(ParseState *pstate, Node *node, Oid inputTypeId, { Node *result; - if (targetTypeId == inputTypeId || targetTypeId == InvalidOid || node == NULL) @@ -606,32 +605,3 @@ PreferredType(CATEGORY category, Oid type) } return result; } /* PreferredType() */ - - -/* - * If the targetTypeId is a domain, we really want to coerce - * the tuple to the domain type -- not the domain itself - */ -Oid -getBaseType(Oid inType) -{ - HeapTuple tup; - Form_pg_type typTup; - - tup = SearchSysCache(TYPEOID, - ObjectIdGetDatum(inType), - 0, 0, 0); - - typTup = ((Form_pg_type) GETSTRUCT(tup)); - - /* - * Assume that typbasetype exists and is a base type, where inType - * was a domain - */ - if (typTup->typtype == 'd') - inType = typTup->typbasetype; - - ReleaseSysCache(tup); - - return inType; -}
\ No newline at end of file |