| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Jsonb comparison bug fixes. |
| Date: | 2014-05-28 19:48:49 |
| Message-ID: | E1WpjqD-00045O-JQ@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b3e5cfd5f979054e31d60adafd9e75bf9c38549a
Modified Files
--------------
src/backend/utils/adt/jsonb_util.c | 63 ++++++++++++++++++++++--------------
1 file changed, 38 insertions(+), 25 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2014-05-28 20:52:22 | pgsql: Minor refactoring of jsonb_util.c |
| Previous Message | Tom Lane | 2014-05-28 19:42:35 | pgsql: Fix bogus %name-prefix option syntax in all our Bison files. |