diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2019-04-01 18:09:20 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2019-04-01 18:09:20 +0300 |
commit | b4cc19ab01ffe6a72a915b21aa41536de80923f5 (patch) | |
tree | 694ca7dabee34a7a8b1e6a03a9fe6a37efc24b57 /src/backend/access/gist/gistxlog.c | |
parent | 2e643501e5281ad5e0fa626dab1d51c1d38f639a (diff) | |
download | postgresql-b4cc19ab01ffe6a72a915b21aa41536de80923f5.tar.gz |
Throw error in jsonb_path_match() when result is not single boolean
jsonb_path_match() checks if jsonb document matches jsonpath query. Therefore,
jsonpath query should return single boolean. Currently, if result of jsonpath
is not a single boolean, NULL is returned independently whether silent mode
is on or off. But that appears to be wrong when silent mode is off. This
commit makes jsonb_path_match() throw an error in this case.
Author: Nikita Glukhov
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions