Jsonb comparison bug fixes.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Jsonb comparison bug fixes. Fix an over-zealous assertion, which didn't take into account that sometimes a scalar element can be compared against an array/object element. Avoid comparing possibly-uninitialized local variables when end-of-array or end-of-object is reached. Also fix and enhance comments a bit. Peter Geoghegan, per reports by Pavel Stehule and me.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonb_util.c | modified | +38 −25 |