diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-16 00:27:17 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-16 00:27:17 +0000 |
commit | db398d05bea227cb2bbf8baca8e9abc5676a65cf (patch) | |
tree | 2c16e388b7cb679e95e8fdfb1356dec7c8cf14b7 /src/include/utils/datetime.h | |
parent | 1fb7158124685f05ad1083f1738d1e9dc7221b5c (diff) | |
download | postgresql-db398d05bea227cb2bbf8baca8e9abc5676a65cf.tar.gz postgresql-db398d05bea227cb2bbf8baca8e9abc5676a65cf.zip |
Repair an embarrassingly large number of alphabetization mistakes in the
datetime token tables. Even more embarrassing, the regression tests
revealed some of the problems --- but evidently the bogus output wasn't
questioned. Add code to postmaster startup to directly check the tables
for correct ordering, in hopes of not being embarrassed like this again.
Diffstat (limited to 'src/include/utils/datetime.h')
-rw-r--r-- | src/include/utils/datetime.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h index be7283bf264..d788ea4d529 100644 --- a/src/include/utils/datetime.h +++ b/src/include/utils/datetime.h @@ -9,16 +9,16 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: datetime.h,v 1.33 2002/09/04 20:31:45 momjian Exp $ + * $Id: datetime.h,v 1.33.2.1 2003/01/16 00:27:17 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef DATETIME_H #define DATETIME_H -#include <time.h> -#include <math.h> #include <limits.h> +#include <math.h> +#include <time.h> #include "utils/timestamp.h" @@ -293,4 +293,6 @@ extern bool ClearDateCache(bool, bool, bool); extern int j2day(int jd); +extern bool CheckDateTokenTables(void); + #endif /* DATETIME_H */ |