diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-01-07 19:53:32 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-01-07 19:53:32 +0000 |
commit | ae76ee9af95335ee201b184b69beb78e8c8856c5 (patch) | |
tree | 8d1545ec9b760cf83ea437dcebbce7abf6e8fddc /src/backend/regex/regexec.c | |
parent | c79a6b110cdc1be4df98fd63813b6bb9e7e91bb4 (diff) | |
download | postgresql-ae76ee9af95335ee201b184b69beb78e8c8856c5.tar.gz postgresql-ae76ee9af95335ee201b184b69beb78e8c8856c5.zip |
Make bit/varbit substring() treat any negative length as meaning "all the rest
of the string". The previous coding treated only -1 that way, and would
produce an invalid result value for other negative values.
We ought to fix it so that 2-parameter bit substring() is a different C
function and the 3-parameter form throws error for negative length, but
that takes a pg_proc change which is impractical in the back branches;
and in any case somebody might be relying on -1 working this way.
So just do this as a back-patchable fix.
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions