aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-03-19 02:40:43 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-03-19 02:40:43 +0000
commit7c5fcbf48f667fda7f002b50825550c6245fc020 (patch)
tree38f67a56155a6c965610670762d75fce29064a07 /src/backend/utils/adt/xml.c
parent9217c262fe616044ccf2326be06676c8f7040d71 (diff)
downloadpostgresql-7c5fcbf48f667fda7f002b50825550c6245fc020.tar.gz
postgresql-7c5fcbf48f667fda7f002b50825550c6245fc020.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/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions