Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

varlena.c

  • Tom Lane's avatar
    d074b4e5
    Fix regexp_matches() handling of zero-length matches. · d074b4e5
    Tom Lane authored
    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.
    d074b4e5
    History
    Fix regexp_matches() handling of zero-length matches.
    Tom Lane authored
    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.