]> granicus.if.org Git - postgresql/commit
Jsonb comparison bug fixes.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 28 May 2014 19:47:04 +0000 (22:47 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 28 May 2014 19:47:04 +0000 (22:47 +0300)
commitb3e5cfd5f979054e31d60adafd9e75bf9c38549a
tree52386e3074cc14d21c5e0957210414b049d6a770
parent45b7abe59e9485657ac9380f35d2d917dd0da25b
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.
src/backend/utils/adt/jsonb_util.c