forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit022fd99
committed
Fix up some problems in handling of zic-style time zone names in datetime
input routines. Remove the former "DecodePosixTimezone" function in favor ofletting the zic code handle POSIX-style zone specs (see tzparse()). Inparticular this means that "PST+3" now means the same as "-03", whereas itused to mean "-11" --- the zone abbreviation is effectively just a noise wordin this syntax. Make sure that all named and POSIX-style zone names will beparsed as a single token. Fix long-standing bogosities in printing and inputof fractional-hour timezone offsets (since the tzparse() code will acceptthese, we'd better make 'em work). Also correct an error in the originalcoding of the zic-zone-name patch: in "timestamp without time zone" input,zone names are supposed to be allowed but ignored, but the coding was suchthat the zone changed the interpretation anyway.1 parentd58f09e commit022fd99
File tree
8 files changed
+214
-300
lines changed- doc/src/sgml
- src
- backend/utils/adt
- test/regress
- expected
- sql
8 files changed
+214
-300
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
1675 | 1675 | | |
1676 | 1676 | | |
1677 | 1677 | | |
1678 | | - | |
| 1678 | + | |
1679 | 1679 | | |
1680 | 1680 | | |
1681 | 1681 | | |
1682 | 1682 | | |
1683 | 1683 | | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
1684 | 1688 | | |
1685 | 1689 | | |
1686 | 1690 | | |
| |||
2183 | 2187 | | |
2184 | 2188 | | |
2185 | 2189 | | |
2186 | | - | |
| 2190 | + | |
2187 | 2191 | | |
2188 | 2192 | | |
2189 | 2193 | | |
| |||
2220 | 2224 | | |
2221 | 2225 | | |
2222 | 2226 | | |
2223 | | - | |
2224 | | - | |
2225 | | - | |
2226 | | - | |
2227 | | - | |
2228 | | - | |
2229 | 2227 | | |
2230 | 2228 | | |
2231 | 2229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 82 | + | |
| 83 | + | |
93 | 84 | | |
94 | 85 | | |
95 | 86 | | |
96 | 87 | | |
97 | 88 | | |
98 | 89 | | |
99 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
100 | 94 | | |
101 | 95 | | |
102 | 96 | | |
| |||
0 commit comments
Comments
(0)