Tom Lane
591e088dd5
Fix portability issues in datetime parsing.
...
datetime.c's parsing logic has assumed that strtod() will accept
a string that looks like ".", which it does in glibc, but not on
some less-common platforms such as AIX. The result of this was
that datetime fields like "123." would be accepted on some platforms
but not others; which is a sufficiently odd case that it's not that
surprising we've heard no field complaints. But commit e39f99046
extended that assumption to new places, and happened to add a test
case that exposed the platform dependency. Remove this dependency
by special-casing situations without any digits after the decimal
point.
(Again, this is in part a pre-existing bug but I don't feel a
compulsion to back-patch.)
Also, rearrange e39f99046's changes in formatting.c to avoid a
Coverity complaint that we were copying an uninitialized field.
Discussion: https://postgr.es/m/1592893.1648969747@sss.pgh.pa.us
2022-04-03 17:04:33 -04:00
..
2019-03-23 00:19:34 +01:00
2022-03-28 15:10:04 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2021-12-01 16:10:56 +01:00
2022-01-07 19:04:57 -05:00
2022-01-11 09:55:16 +09:00
2022-04-02 15:22:25 +07:00
2022-04-03 17:04:33 -04:00
2022-01-07 19:04:57 -05:00
2022-03-28 15:10:04 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-03-30 16:30:37 -04:00
2022-04-03 17:04:33 -04:00
2022-03-28 15:10:04 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-03-29 10:15:48 +09:00
2019-08-18 19:27:23 -04:00
2019-08-18 19:27:23 -04:00
2022-02-14 21:57:26 +01:00
2022-02-15 07:44:26 +01:00
2022-03-30 16:30:37 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-03-27 17:03:34 -04:00
2022-03-30 16:30:37 -04:00
2022-01-07 19:04:57 -05:00
2022-03-29 16:57:13 -04:00
2022-03-29 16:57:13 -04:00
2022-02-14 23:07:35 +01:00
2022-03-28 11:11:39 +02:00
2022-03-29 16:57:13 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-20 09:50:18 +01:00
2022-01-20 09:50:18 +01:00
2022-02-10 10:27:29 +09:00
2022-01-07 19:04:57 -05:00
2022-04-02 15:22:25 +07:00
2022-03-24 12:42:30 +09:00
2022-03-07 10:26:29 +09:00
2022-03-17 11:25:02 +09:00
2022-01-07 19:04:57 -05:00
2022-03-30 20:16:23 +02:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-04-02 15:22:25 +07:00
2022-03-03 18:13:24 -05:00
2022-02-15 07:44:26 +01:00
2022-01-14 11:26:08 +01:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-03-20 10:21:45 +01:00
2022-01-07 19:04:57 -05:00
2022-01-17 13:40:27 -05:00
2022-03-28 15:10:04 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-03-30 17:53:54 +02:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-03-20 18:43:40 +01:00
2022-01-07 19:04:57 -05:00
2022-03-31 15:45:24 -04:00
2022-03-31 01:13:33 +02:00
2022-03-03 20:04:35 -05:00
2022-04-02 16:12:29 -04:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-03-15 11:29:35 +09:00
2022-02-15 17:28:17 -05:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-04-02 15:22:25 +07:00
2022-01-07 19:04:57 -05:00
2022-01-20 09:50:18 +01:00
2022-04-02 15:22:25 +07:00
2022-01-07 19:04:57 -05:00
2022-01-07 19:04:57 -05:00
2022-03-21 11:11:55 -04:00
2022-02-10 12:33:41 +09:00
2022-03-18 16:01:42 -04:00