*** ./src/backend/utils/adt/datetime.c.orig Fri Jul 13 10:00:33 2001 --- ./src/backend/utils/adt/datetime.c Mon Aug 27 17:02:20 2001 *************** *** 70,76 **** * entries by 10 and truncate the text field at MAXTOKLEN characters. * the text field is not guaranteed to be NULL-terminated. */ ! static datetkn datetktbl[] = { /* text token lexval */ {EARLY, RESERV, DTK_EARLY}, /* "-infinity" reserved for "early time" */ {"acsst", DTZ, 63}, /* Cent. Australia */ --- 70,76 ---- * entries by 10 and truncate the text field at MAXTOKLEN characters. * the text field is not guaranteed to be NULL-terminated. */ ! datetkn datetktbl[] = { /* text token lexval */ {EARLY, RESERV, DTK_EARLY}, /* "-infinity" reserved for "early time" */ {"acsst", DTZ, 63}, /* Cent. Australia */ *************** *** 218,236 **** {ZULU, RESERV, DTK_ZULU}, /* 00:00:00 */ }; ! static unsigned int szdatetktbl = sizeof datetktbl / sizeof datetktbl[0]; /* Used for SET australian_timezones to override North American ones */ ! static datetkn australian_datetktbl[] = { {"cst", TZ, 63}, /* Australia Eastern Std Time */ {"est", TZ, 60}, /* Australia Eastern Std Time */ {"sat", TZ, 57}, }; ! static unsigned int australian_szdatetktbl = sizeof australian_datetktbl / sizeof australian_datetktbl[0]; ! static datetkn deltatktbl[] = { /* text token lexval */ {"@", IGNORE, 0}, /* postgres relative time prefix */ {DAGO, AGO, 0}, /* "ago" indicates negative time offset */ --- 218,236 ---- {ZULU, RESERV, DTK_ZULU}, /* 00:00:00 */ }; ! unsigned int szdatetktbl = sizeof datetktbl / sizeof datetktbl[0]; /* Used for SET australian_timezones to override North American ones */ ! datetkn australian_datetktbl[] = { {"cst", TZ, 63}, /* Australia Eastern Std Time */ {"est", TZ, 60}, /* Australia Eastern Std Time */ {"sat", TZ, 57}, }; ! unsigned int australian_szdatetktbl = sizeof australian_datetktbl / sizeof australian_datetktbl[0]; ! datetkn deltatktbl[] = { /* text token lexval */ {"@", IGNORE, 0}, /* postgres relative time prefix */ {DAGO, AGO, 0}, /* "ago" indicates negative time offset */ *************** *** 308,314 **** {"yrs", UNITS, DTK_YEAR}, /* "years" relative time units */ }; ! static unsigned int szdeltatktbl = sizeof deltatktbl / sizeof deltatktbl[0]; datetkn *datecache[MAXDATEFIELDS] = {NULL}; --- 308,314 ---- {"yrs", UNITS, DTK_YEAR}, /* "years" relative time units */ }; ! unsigned int szdeltatktbl = sizeof deltatktbl / sizeof deltatktbl[0]; datetkn *datecache[MAXDATEFIELDS] = {NULL};