File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11
11
*
12
12
*
13
13
* IDENTIFICATION
14
- * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.156 2000/03/14 23:06:31 thomas Exp $
14
+ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.157 2000/03/15 05:31:55 tgl Exp $
15
15
*
16
16
* HISTORY
17
17
* AUTHOR DATE MAJOR EVENT
@@ -5479,12 +5479,17 @@ mapTargetColumns(List *src, List *dst)
5479
5479
*
5480
5480
* Do not convert "float", since that is handled elsewhere
5481
5481
* for FLOAT(p) syntax.
5482
+ *
5483
+ * Converting "datetime" to "timestamp" is a temporary expedient for
5484
+ * pre-7.0 to 7.0 compatibility; it should go away again someday.
5482
5485
*/
5483
5486
static char *
5484
5487
xlateSqlFunc (char *name)
5485
5488
{
5486
5489
if (!strcasecmp (name," character_length" ))
5487
5490
return " char_length" ;
5491
+ else if (!strcasecmp (name," datetime" ))
5492
+ return " timestamp" ;
5488
5493
else
5489
5494
return name;
5490
5495
} /* xlateSqlFunc() */
You can’t perform that action at this time.
0 commit comments