aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-01-07 19:53:11 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-01-07 19:53:11 +0000
commite4a6ebf7dece1481b1432c8ac43124487bebf3d9 (patch)
tree8ce7c3f3b35016daeaf0a569c628deddd7154708 /src/backend/access/gist/gist.c
parent82170c747bf74e31f7083849c07a53ec643356b4 (diff)
downloadpostgresql-e4a6ebf7dece1481b1432c8ac43124487bebf3d9.tar.gz
postgresql-e4a6ebf7dece1481b1432c8ac43124487bebf3d9.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/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions