Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2628d9b

Browse files
committed
Document range restriction on bit values used in INTERVAL typmod.
1 parentd0667af commit2628d9b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎src/include/utils/datetime.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
1010
* Portions Copyright (c) 1994, Regents of the University of California
1111
*
12-
* $Id: datetime.h,v 1.22 2001/09/28 08:09:14 thomas Exp $
12+
* $Id: datetime.h,v 1.23 2001/10/23 20:17:27 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -78,8 +78,13 @@
7878

7979
/*
8080
* Fields for time decoding.
81+
*
8182
* Can't have more of these than there are bits in an unsigned int
82-
*since these are turned into bit masks during parsing and decoding.
83+
* since these are turned into bit masks during parsing and decoding.
84+
*
85+
* Furthermore, the values for YEAR, MONTH, DAY, HOUR, MINUTE, SECOND
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.
8388
*/
8489

8590
#defineRESERV0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp