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 1111 *
1212 *
1313 * 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 $
1515 *
1616 * HISTORY
1717 * AUTHOR DATE MAJOR EVENT
@@ -5479,12 +5479,17 @@ mapTargetColumns(List *src, List *dst)
54795479 *
54805480 * Do not convert "float", since that is handled elsewhere
54815481 * 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.
54825485 */
54835486static char *
54845487xlateSqlFunc (char *name)
54855488{
54865489 if (!strcasecmp (name," character_length" ))
54875490 return " char_length" ;
5491+ else if (!strcasecmp (name," datetime" ))
5492+ return " timestamp" ;
54885493 else
54895494 return name;
54905495} /* xlateSqlFunc() */
You can’t perform that action at this time.
0 commit comments