git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c876fb4) | patch
Fix regexp_matches() handling of zero-length matches.
2013年7月31日 15:31:22 +0000 (11:31 -0400)
2013年7月31日 15:31:22 +0000 (11:31 -0400)
commit d074b4e50d11768ab6da696b13d40ec05e4823fb
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.
src/backend/utils/adt/regexp.c diff | blob | blame | history
src/backend/utils/adt/varlena.c diff | blob | blame | history
src/test/regress/expected/strings.out diff | blob | blame | history
src/test/regress/sql/strings.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /