- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit7157fe8
committed
Fix overly-strict assertions in spgtextproc.c.
spg_text_inner_consistent is capable of reconstructing an empty stringto pass down to the next index level; this happens if we have an emptystring coming in, no prefix, and a dummy node label. (In practice, whatis needed to trigger that is insertion of a whole bunch of empty-stringvalues.) Then, we will arrive at the next level with in->level == 0and a non-NULL (but zero length) in->reconstructedValue, which is validbut the Assert tests weren't expecting it.Per report from Andreas Seltenreich. This has no impact in non-Assertbuilds, so should not be a problem in production, but back-patch toall affected branches anyway.In passing, remove a couple of useless variable initializations andshorten the code by not duplicating DatumGetPointer() calls.1 parentdf35af2 commit7157fe8
1 file changed
+8
-6
lines changedLines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
403 | 403 |
| |
404 | 404 |
| |
405 | 405 |
| |
406 |
| - | |
407 |
| - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
408 | 409 |
| |
409 | 410 |
| |
410 | 411 |
| |
| |||
420 | 421 |
| |
421 | 422 |
| |
422 | 423 |
| |
423 |
| - | |
424 |
| - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
425 | 427 |
| |
426 | 428 |
| |
427 | 429 |
| |
| |||
436 | 438 |
| |
437 | 439 |
| |
438 | 440 |
| |
439 |
| - | |
| 441 | + | |
440 | 442 |
| |
441 | 443 |
| |
442 | 444 |
| |
| |||
560 | 562 |
| |
561 | 563 |
| |
562 | 564 |
| |
563 |
| - | |
| 565 | + | |
564 | 566 |
| |
565 | 567 |
| |
566 | 568 |
| |
|
0 commit comments
Comments
(0)