Minor comment fixes.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Jun 2007 16:01:31 +0000 (16:01 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Jun 2007 16:01:31 +0000 (16:01 +0000)
src/include/utils/datetime.h

index 3e9f59b2984b9faa694f948aeb204eef88db0cee..d13874537f8373109ba53dc16899ffa703e742ac 100644 (file)
@@ -84,7 +84,8 @@
  *
  * 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.
+ * into the left half of an INTERVAL's typmod value.  Since those bits
+ * are stored in typmods, you can't change them without initdb!
  */
 
 #define RESERV 0
 
 #define DTK_M(t)               (0x01 << (t))
 
-/* Convenvience: a second, plus any fractional component */
+/* Convenience: a second, plus any fractional component */
 #define DTK_ALL_SECS_M (DTK_M(SECOND) | DTK_M(MILLISECOND) | DTK_M(MICROSECOND))
 #define DTK_DATE_M             (DTK_M(YEAR) | DTK_M(MONTH) | DTK_M(DAY))
 #define DTK_TIME_M             (DTK_M(HOUR) | DTK_M(MINUTE) | DTK_ALL_SECS_M)