diff options
author | Tom Lane | 2008-03-19 02:41:15 +0000 |
---|---|---|
committer | Tom Lane | 2008-03-19 02:41:15 +0000 |
commit | a1453f121bd44aa1b37ac213e2716640260a75eb (patch) | |
tree | 7b4084fedd474ea6dc214b307f1b6e92c15c6070 /doc/FAQ_DEV | |
parent | 0d52d7a71efd0f090b62f3bfa77bd0060aa560d5 (diff) |
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 'doc/FAQ_DEV')
0 files changed, 0 insertions, 0 deletions