diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-01-07 19:53:16 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-01-07 19:53:16 +0000 |
commit | ac7fc991c0234cc7594187a5206b566fe1deff20 (patch) | |
tree | f30dfa3918130b368343e76384dad48429476f8e /src/backend/executor/nodeSort.c | |
parent | ed62e74522568a2099ca8f7152fc7e36d6702cbb (diff) | |
download | postgresql-ac7fc991c0234cc7594187a5206b566fe1deff20.tar.gz postgresql-ac7fc991c0234cc7594187a5206b566fe1deff20.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/executor/nodeSort.c')
0 files changed, 0 insertions, 0 deletions