forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit57bfb27
committed
Fix interval input parser so that fractional weeks and months are
cascaded first to days and only what is leftover into seconds. Thisseems to satisfy the principle of least surprise given the generalconversion to three-part interval values --- it was an oversight thatthese cases weren't dealt with in 8.1. Michael Glaesemann1 parent091fe03 commit57bfb27
File tree
4 files changed
+72
-30
lines changed- src
- backend/utils/adt
- interfaces/ecpg/pgtypeslib
- test/regress
- expected
- sql
4 files changed
+72
-30
lines changedLines changed: 29 additions & 15 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 |
| |
| |||
2920 | 2920 |
| |
2921 | 2921 |
| |
2922 | 2922 |
| |
2923 |
| - | |
2924 |
| - | |
2925 |
| - | |
2926 |
| - | |
2927 |
| - | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
2928 | 2934 |
| |
2929 |
| - | |
| 2935 | + | |
2930 | 2936 |
| |
2931 |
| - | |
| 2937 | + | |
2932 | 2938 |
| |
| 2939 | + | |
2933 | 2940 |
| |
2934 | 2941 |
| |
2935 | 2942 |
| |
| |||
2938 | 2945 |
| |
2939 | 2946 |
| |
2940 | 2947 |
| |
2941 |
| - | |
2942 |
| - | |
2943 |
| - | |
2944 |
| - | |
2945 |
| - | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
2946 | 2959 |
| |
2947 |
| - | |
| 2960 | + | |
2948 | 2961 |
| |
2949 |
| - | |
| 2962 | + | |
2950 | 2963 |
| |
| 2964 | + | |
2951 | 2965 |
| |
2952 | 2966 |
| |
2953 | 2967 |
| |
|
Lines changed: 29 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
307 | 307 |
| |
308 | 308 |
| |
309 | 309 |
| |
310 |
| - | |
311 |
| - | |
312 |
| - | |
313 |
| - | |
314 |
| - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
315 | 321 |
| |
316 |
| - | |
| 322 | + | |
317 | 323 |
| |
318 |
| - | |
| 324 | + | |
319 | 325 |
| |
| 326 | + | |
320 | 327 |
| |
321 | 328 |
| |
322 | 329 |
| |
| |||
325 | 332 |
| |
326 | 333 |
| |
327 | 334 |
| |
328 |
| - | |
329 |
| - | |
330 |
| - | |
331 |
| - | |
332 |
| - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
333 | 346 |
| |
334 |
| - | |
| 347 | + | |
335 | 348 |
| |
336 |
| - | |
| 349 | + | |
337 | 350 |
| |
| 351 | + | |
338 | 352 |
| |
339 | 353 |
| |
340 | 354 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
42 | 54 |
| |
43 | 55 |
| |
44 | 56 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
| 15 | + | |
14 | 16 |
| |
15 | 17 |
| |
16 | 18 |
| |
|
0 commit comments
Comments
(0)