diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-23 20:17:27 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-23 20:17:27 +0000 |
commit | 2628d9b3a46224ea2cbb41e7bb0153d4b477fa70 (patch) | |
tree | ac678db9b3bfdde254dd28eec07f352071af46b8 /src | |
parent | d0667af926124bd8e148f4905d5dba17adef8fd6 (diff) | |
download | postgresql-2628d9b3a46224ea2cbb41e7bb0153d4b477fa70.tar.gz postgresql-2628d9b3a46224ea2cbb41e7bb0153d4b477fa70.zip |
Document range restriction on bit values used in INTERVAL typmod.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/utils/datetime.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h index f2102a21e55..dbba5e06422 100644 --- a/src/include/utils/datetime.h +++ b/src/include/utils/datetime.h @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: datetime.h,v 1.22 2001/09/28 08:09:14 thomas Exp $ + * $Id: datetime.h,v 1.23 2001/10/23 20:17:27 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -78,8 +78,13 @@ /* * Fields for time decoding. + * * Can't have more of these than there are bits in an unsigned int - * since these are turned into bit masks during parsing and decoding. + * since these are turned into bit masks during parsing and decoding. + * + * Furthermore, the values for YEAR, MONTH, DAY, HOUR, MINUTE, SECOND + * must be in the range 0..14 so that the associated bitmasks can fit + * into the left half of an INTERVAL's typmod value. */ #define RESERV 0 |