Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf4d108a

Browse files
committed
Even after the great date/time consolidation, TypeCategory() was still
a few bricks shy of a load concerning knowing all the date/time types.This is real bad because it interferes with func_select_candidate()'swillingness to disambiguate functions --- func_select_candidate() willpunt unless all the available choices have the same type category.I think this whole mechanism needs redesigned, but in the meantimethis is a needed patch.
1 parent4467194 commitf4d108a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎src/backend/parser/parse_coerce.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.30 2000/02/16 17:24:37 thomas Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.31 2000/02/20 06:28:42 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -298,12 +298,15 @@ TypeCategory(Oid inType)
298298
result=NUMERIC_TYPE;
299299
break;
300300

301+
case (DATEOID):
302+
case (TIMEOID):
301303
case (ABSTIMEOID):
302304
case (TIMESTAMPOID):
303305
result=DATETIME_TYPE;
304306
break;
305307

306308
case (RELTIMEOID):
309+
case (TINTERVALOID):
307310
case (INTERVALOID):
308311
result=TIMESPAN_TYPE;
309312
break;

‎src/include/catalog/pg_type.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: pg_type.h,v 1.81 2000/02/16 17:26:07 thomas Exp $
11+
* $Id: pg_type.h,v 1.82 2000/02/20 06:28:41 tgl Exp $
1212
*
1313
* NOTES
1414
* the genbki.sh script reads this file and generates .bki
@@ -287,6 +287,7 @@ DESCR("relative, limited-range time interval (Unix delta time)");
287287
#defineRELTIMEOID703
288288
DATA(insertOID=704 (tintervalPGUID1247fbt \05400tintervalintintervalouttintervalintintervalouti_null_ ));
289289
DESCR("(abstime,abstime), time interval");
290+
#defineTINTERVALOID704
290291
DATA(insertOID=705 (unknownPGUID-1-1fbt \054018textintextouttextintextouti_null_ ));
291292
DESCR("");
292293
#defineUNKNOWNOID705

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp