mirror of https://github.com/postgres/postgres
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.REL9_0_ALPHA4_BRANCH
parent
82170c747b
commit
e4a6ebf7de
Loading…
Reference in new issue