forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit01783ac
committed
Fix yet more problems with incorrectly-constructed zero-length arrays.
Commit716ea62 attempted to fix the problem of building 1-D zero-sizearrays once and for all. But it turns out that contrib/intarray has somecode that doesn't use construct_array() but just builds arrays by hand,so it didn't get the memo. This appears to affect all of subarray(),intset_subtract(), inner_int_union(), inner_int_inter(), andintarray_concat_arrays().Back-patch into v11. In the past we've not back-patched this type ofchange, but since v11 is still in beta it seems all right to includethis fix in it. Besides it's more consistent to make the fix in v11where716ea62 appeared.Report and patch by Alexey Kryuchkov, some cosmetic adjustments by meReport:https://postgr.es/m/153053285112.13258.434620894305716755@wrigleys.postgresql.orgDiscussion:https://postgr.es/m/CAN85JcYphDLYt4CpMDLZjjNVqGDrFJ5eS3YF=wLAhFoDQuBsyg@mail.gmail.com1 parent6abad00 commit01783ac
3 files changed
+42
-3
lines changedLines changed: 14 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
223 |
| - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
224 | 233 |
| |
225 | 234 |
| |
226 | 235 |
| |
| |||
237 | 246 |
| |
238 | 247 |
| |
239 | 248 |
| |
240 |
| - | |
| 249 | + | |
241 | 250 |
| |
242 | 251 |
| |
243 | 252 |
| |
244 |
| - | |
| 253 | + | |
245 | 254 |
| |
246 | 255 |
| |
247 | 256 |
| |
| |||
250 | 259 |
| |
251 | 260 |
| |
252 | 261 |
| |
| 262 | + | |
| 263 | + | |
253 | 264 |
| |
254 | 265 |
| |
255 | 266 |
| |
|
Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
154 | 178 |
| |
155 | 179 |
| |
156 | 180 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 |
| |
34 | 38 |
| |
35 | 39 |
| |
|
0 commit comments
Comments
(0)