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:
@ -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):
|
||||
|
Reference in New Issue
Block a user