aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/variable.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-01-07 19:53:39 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-01-07 19:53:39 +0000
commit34d7ef60e7ff5d34058822db33953c279818ceb8 (patch)
treef1f429b3af9acddfef6fb9e9fbc9bb5db258edb4 /src/backend/commands/variable.c
parent2714d78dacb920888b5a84720f3227672b2a05db (diff)
downloadpostgresql-34d7ef60e7ff5d34058822db33953c279818ceb8.tar.gz
postgresql-34d7ef60e7ff5d34058822db33953c279818ceb8.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/commands/variable.c')
0 files changed, 0 insertions, 0 deletions