Re: BUG #16804: substring() function returns "negative substring length" error when using a large length argument

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rafi Shamim <rafiss(at)gmail(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Jerry Sievert <jerry(at)legitimatesounding(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #16804: substring() function returns "negative substring length" error when using a large length argument
Date: 2021-01-04 22:28:11
Message-ID: 3321781.1609799291@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Rafi Shamim <rafiss(at)gmail(dot)com> writes:
> I forgot to include this in my original bug report, but the bytea substring
> function (which has a separate implementation in varlena.c) is also
> affected.

Um. And I bet the "bit" variant as well ...

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2021-01-05 01:23:04 BUG #16805: "ALTER TABLE ... ADD COLUMN IF NOT EXISTS ... PRIMARY KEY" fails if column exists and is the primary
Previous Message Rafi Shamim 2021-01-04 21:52:13 Re: BUG #16804: substring() function returns "negative substring length" error when using a large length argument