-
- Downloads
Fix the fastpath rule for jsonb_concat with an empty operand.
To prevent perverse results, we now only return the other operand if it's not scalar, and if both operands are of the same kind (array or object). Original bug complaint and patch from Oskari Saarenmaa, extended by me to cover the cases of different kinds of jsonb. Backpatch to 9.5 where jsonb_concat was introduced.
Showing
- src/backend/utils/adt/jsonfuncs.c 11 additions, 5 deletionssrc/backend/utils/adt/jsonfuncs.c
- src/test/regress/expected/jsonb.out 36 additions, 0 deletionssrc/test/regress/expected/jsonb.out
- src/test/regress/expected/jsonb_1.out 36 additions, 0 deletionssrc/test/regress/expected/jsonb_1.out
- src/test/regress/sql/jsonb.sql 7 additions, 0 deletionssrc/test/regress/sql/jsonb.sql
Loading
Please register or sign in to comment