diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-07-31 11:31:22 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-07-31 11:31:22 -0400 |
commit | d074b4e50d11768ab6da696b13d40ec05e4823fb (patch) | |
tree | 8ef9058772588c50ac10cc49201c0ea02bbf6d30 /src/backend/utils/adt/arrayfuncs.c | |
parent | c876fb42417739dbb19540ef61f6cd75752eb16e (diff) | |
download | postgresql-d074b4e50d11768ab6da696b13d40ec05e4823fb.tar.gz postgresql-d074b4e50d11768ab6da696b13d40ec05e4823fb.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/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions