|
9 | 9 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
10 | 10 | * Portions Copyright (c) 1994, Regents of the University of California
|
11 | 11 | *
|
12 |
| - * $PostgreSQL: pgsql/src/include/utils/datetime.h,v 1.66 2007/05/29 04:58:43 neilc Exp $ |
| 12 | + * $PostgreSQL: pgsql/src/include/utils/datetime.h,v 1.67 2007/06/12 16:01:31 tgl Exp $ |
13 | 13 | *
|
14 | 14 | *-------------------------------------------------------------------------
|
15 | 15 | */
|
|
84 | 84 | *
|
85 | 85 | * Furthermore, the values for YEAR, MONTH, DAY, HOUR, MINUTE, SECOND
|
86 | 86 | * must be in the range 0..14 so that the associated bitmasks can fit
|
87 |
| - * into the left half of an INTERVAL's typmod value. |
| 87 | + * into the left half of an INTERVAL's typmod value. Since those bits |
| 88 | + * are stored in typmods, you can't change them without initdb! |
88 | 89 | */
|
89 | 90 |
|
90 | 91 | #defineRESERV0
|
|
177 | 178 |
|
178 | 179 | #defineDTK_M(t)(0x01 << (t))
|
179 | 180 |
|
180 |
| -/*Convenvience: a second, plus any fractional component */ |
| 181 | +/*Convenience: a second, plus any fractional component */ |
181 | 182 | #defineDTK_ALL_SECS_M(DTK_M(SECOND) | DTK_M(MILLISECOND) | DTK_M(MICROSECOND))
|
182 | 183 | #defineDTK_DATE_M(DTK_M(YEAR) | DTK_M(MONTH) | DTK_M(DAY))
|
183 | 184 | #defineDTK_TIME_M(DTK_M(HOUR) | DTK_M(MINUTE) | DTK_ALL_SECS_M)
|
|