1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

Include OID as a built-in type.

This commit is contained in:
Thomas G. Lockhart
1998-08-14 16:07:00 +00:00
parent 58e9267026
commit 94f42ed389
2 changed files with 12 additions and 4 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.3 1998/07/08 14:04:10 thomas Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.4 1998/08/14 16:06:52 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@ -271,6 +271,7 @@ TypeCategory(Oid inType)
result = STRING_TYPE;
break;
case (OIDOID):
case (INT2OID):
case (INT4OID):
case (INT8OID):
@ -338,7 +339,10 @@ PreferredType(CATEGORY category, Oid type)
break;
case (NUMERIC_TYPE):
result = FLOAT8OID;
if (type == OIDOID)
result = OIDOID;
else
result = FLOAT8OID;
break;
case (DATETIME_TYPE):