forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7829f85
committed
Be more careful with error paths in pg_set_regex_collation().
Set global variables after error paths so that they don't end up in aninconsistent state.The inconsistent state doesn't lead to an actual problem, becauseafter an error, pg_set_regex_collation() will be called again beforethe globals are accessed.Change extracted from patch by Andreas Karlsson, though not discussedexplicitly.Discussion:https://postgr.es/m/60929555-4709-40a7-b136-bcb44cff5a3c@proxel.se1 parentfadff3f commit7829f85
1 file changed
+17
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| |||
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
249 | | - | |
250 | | - | |
251 | | - | |
| 252 | + | |
| 253 | + | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
255 | | - | |
| 257 | + | |
256 | 258 | | |
257 | | - | |
| 259 | + | |
258 | 260 | | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
262 | | - | |
| 264 | + | |
263 | 265 | | |
264 | 266 | | |
265 | | - | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
268 | | - | |
| 270 | + | |
269 | 271 | | |
270 | | - | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
276 | | - | |
| 278 | + | |
277 | 279 | | |
278 | | - | |
| 280 | + | |
279 | 281 | | |
280 | | - | |
281 | | - | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
| |||
0 commit comments
Comments
(0)