pgsql: Jsonb comparison bug fixes.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Jsonb comparison bug fixes.
Дата
Msg-id E1WpjqD-00045O-JQ@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix bogus %name-prefix option syntax in all our Bison files.
Следующее
От:
Дата:
Сообщение: ...