Commit 2628d9b3 authored by Tom Lane's avatar Tom Lane

Document range restriction on bit values used in INTERVAL typmod.

parent d0667af9
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * 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 @@ ...@@ -78,8 +78,13 @@
/* /*
* Fields for time decoding. * Fields for time decoding.
*
* Can't have more of these than there are bits in an unsigned int * 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 #define RESERV 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment