forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9b74f32
committed
Unpack jbvBinary objects passed to pushJsonbValue
pushJsonbValue was accepting jbvBinary objects passed as WJB_ELEM orWJB_VALUE data. While this succeeded, when those objects were laterencountered in attempting to convert the result to Jsonb, errorsoccurred. With this change we ghuarantee that a JSonbValue constructedfrom calls to pushJsonbValue does not contain any jbvBinary objects.This cures a problem observed with jsonb_delete.This means callers of pushJsonbValue no longer need to perform thisunpacking themselves. A subsequent patch will perform some cleanup inthat area.The error was not triggered by any 9.4 code, but this is a publiclyvisible routine, and so the error could be exercised by third partycode, therefore backpatch to 9.4.Bug report from Peter Geoghegan, fix by me.1 parent7d0d2b8 commit9b74f32
2 files changed
+40
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
503 | 506 | | |
504 | 507 | | |
505 | 508 | | |
506 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
507 | 514 | | |
508 | 515 | | |
509 | 516 | | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
510 | 546 | | |
511 | 547 | | |
512 | 548 | | |
| |||
549 | 585 | | |
550 | 586 | | |
551 | 587 | | |
552 | | - | |
553 | | - | |
| 588 | + | |
554 | 589 | | |
555 | 590 | | |
556 | 591 | | |
557 | | - | |
558 | | - | |
| 592 | + | |
559 | 593 | | |
560 | 594 | | |
561 | 595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
0 commit comments
Comments
(0)