aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-07-31 11:31:26 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-07-31 11:31:26 -0400
commit5d9951a65037fe2b7bdca8ed20c8775594672e34 (patch)
treed92dd215b516bcc1de39326c5484da0795048d0b /src/backend/utils/adt/jsonfuncs.c
parentfe136ba6fc31760efe7ac53e662395a71a92dc03 (diff)
downloadpostgresql-5d9951a65037fe2b7bdca8ed20c8775594672e34.tar.gz
postgresql-5d9951a65037fe2b7bdca8ed20c8775594672e34.zip
Fix regexp_matches() handling of zero-length matches.
We'd find the same match twice if it was of zero length and not immediately adjacent to the previous match. replace_text_regexp() got similar cases right, so adjust this search logic to match that. Note that even though the regexp_split_to_xxx() functions share this code, they did not display equivalent misbehavior, because the second match would be considered degenerate and ignored. Jeevan Chalke, with some cosmetic changes by me.
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions