- Notifications
You must be signed in to change notification settings - Fork5
Commitfe1b07a
committed
When checking for datetime field overflow, we should allow a fractional-second
part that rounds up to exactly 1.0 second. The previous coding rejected inputlike "00:12:57.9999999999999999999999999999", with the exact number of ninesneeded to cause failure varying depending on float-timestamp option andpossibly on platform. Obviously this should round up to the next integralsecond, if we don't have enough precision to distinguish the value from that.Per bug #4789 from Robert Kruus.In passing, fix a missed check for fractional seconds in one copy of the"is it greater than 24:00:00" code.Broken all the way back, so patch all the way back.1 parentcfb61be commitfe1b07a
1 file changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
| 953 | + | |
| 954 | + | |
954 | 955 | | |
955 | 956 | | |
956 | 957 | | |
| |||
2058 | 2059 | | |
2059 | 2060 | | |
2060 | 2061 | | |
2061 | | - | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
2062 | 2065 | | |
2063 | | - | |
2064 | | - | |
2065 | | - | |
| 2066 | + | |
2066 | 2067 | | |
2067 | | - | |
2068 | | - | |
2069 | | - | |
| 2068 | + | |
2070 | 2069 | | |
2071 | 2070 | | |
2072 | 2071 | | |
| |||
2386 | 2385 | | |
2387 | 2386 | | |
2388 | 2387 | | |
2389 | | - | |
| 2388 | + | |
2390 | 2389 | | |
2391 | 2390 | | |
2392 | 2391 | | |
2393 | | - | |
| 2392 | + | |
2394 | 2393 | | |
2395 | 2394 | | |
2396 | 2395 | | |
| |||
0 commit comments
Comments
(0)