- Notifications
You must be signed in to change notification settings - Fork5
Commitb3b89fd
committed
Fix DecodeInterval to report an error for multiple occurrences of DAY, WEEK,
YEAR, DECADE, CENTURY, or MILLENIUM fields, just as it always has done forother types of fields. The previous behavior seems to have been a hack toavoid defining bit-positions for all these field types in DTK_M() masks,rather than something that was really considered to be desired behavior.But there is room in the masks for these, and we really need to tighten upat least the behavior of DAY and YEAR fields to avoid unexpected behaviorassociated with the 8.4 changes to interpret ambiguous fields based on theinterval qualifier (typmod) value. Per my example and proposed patch.1 parent5377ccb commitb3b89fd
2 files changed
+14
-9
lines changedLines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
3022 | 3022 |
| |
3023 | 3023 |
| |
3024 | 3024 |
| |
3025 |
| - | |
| 3025 | + | |
3026 | 3026 |
| |
3027 | 3027 |
| |
3028 | 3028 |
| |
3029 | 3029 |
| |
3030 | 3030 |
| |
3031 |
| - | |
| 3031 | + | |
3032 | 3032 |
| |
3033 | 3033 |
| |
3034 | 3034 |
| |
3035 | 3035 |
| |
3036 | 3036 |
| |
3037 |
| - | |
| 3037 | + | |
3038 | 3038 |
| |
3039 | 3039 |
| |
3040 | 3040 |
| |
| |||
3047 | 3047 |
| |
3048 | 3048 |
| |
3049 | 3049 |
| |
3050 |
| - | |
| 3050 | + | |
3051 | 3051 |
| |
3052 | 3052 |
| |
3053 | 3053 |
| |
3054 | 3054 |
| |
3055 | 3055 |
| |
3056 | 3056 |
| |
3057 |
| - | |
| 3057 | + | |
3058 | 3058 |
| |
3059 | 3059 |
| |
3060 | 3060 |
| |
3061 | 3061 |
| |
3062 | 3062 |
| |
3063 | 3063 |
| |
3064 |
| - | |
| 3064 | + | |
3065 | 3065 |
| |
3066 | 3066 |
| |
3067 | 3067 |
| |
3068 | 3068 |
| |
3069 | 3069 |
| |
3070 | 3070 |
| |
3071 |
| - | |
| 3071 | + | |
3072 | 3072 |
| |
3073 | 3073 |
| |
3074 | 3074 |
| |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 |
| |
118 | 123 |
| |
119 | 124 |
| |
|
0 commit comments
Comments
(0)