forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit06d9afa
committed
Fix longstanding error in contrib/intarray's int[] & int[] operator.
The array intersection code would give wrong results if the first entry ofthe correct output array would be "1". (I think only this value could beat risk, since the previous word would always be a lower-bound entry withthat fixed value.)Problem spotted by Julien Rouhaud, initial patch by Guillaume Lelarge,cosmetic improvements by me.1 parent4767bc8 commit06d9afa
3 files changed
+14
-6
lines changedLines changed: 7 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
| 144 | + | |
144 | 145 |
| |
145 | 146 |
| |
146 | 147 |
| |
| |||
152 | 153 |
| |
153 | 154 |
| |
154 | 155 |
| |
155 |
| - | |
| 156 | + | |
156 | 157 |
| |
157 | 158 |
| |
158 | 159 |
| |
159 | 160 |
| |
160 | 161 |
| |
161 | 162 |
| |
162 |
| - | |
163 |
| - | |
| 163 | + | |
| 164 | + | |
164 | 165 |
| |
165 | 166 |
| |
166 | 167 |
| |
167 | 168 |
| |
168 | 169 |
| |
169 | 170 |
| |
170 | 171 |
| |
171 |
| - | |
| 172 | + | |
172 | 173 |
| |
173 | 174 |
| |
174 | 175 |
| |
175 | 176 |
| |
176 | 177 |
| |
177 |
| - | |
| 178 | + | |
178 | 179 |
| |
179 | 180 |
| |
180 | 181 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
140 | 146 |
| |
141 | 147 |
| |
142 | 148 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
|
0 commit comments
Comments
(0)