aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-03-19 02:40:53 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-03-19 02:40:53 +0000
commit2d19019d9d13b112db860af8ecb80141b7b146ca (patch)
tree2b42ac32f6642f3943af81e8e4becf7059ddd468 /src/include/postgres.h
parent2fec466326a97be1e78b75715aaf694451a0d594 (diff)
downloadpostgresql-2d19019d9d13b112db860af8ecb80141b7b146ca.tar.gz
postgresql-2d19019d9d13b112db860af8ecb80141b7b146ca.zip
Fix regexp substring matching (substring(string from pattern)) for the corner
case where there is a match to the pattern overall but the user has specified a parenthesized subexpression and that subexpression hasn't got a match. An example is substring('foo' from 'foo(bar)?'). This should return NULL, since (bar) isn't matched, but it was mistakenly returning the whole-pattern match instead (ie, 'foo'). Per bug #4044 from Rui Martins. This has been broken since the beginning; patch in all supported versions. The old behavior was sufficiently inconsistent that it's impossible to believe anyone is depending on it.
Diffstat (limited to 'src/include/postgres.h')
0 files changed, 0 insertions, 0 deletions