Tom Lane wrote:
> I see in your recent bytea-LIKE patch
>
> if (datatype != BYTEAOID && pg_database_encoding_max_length() > 1)
> len = pg_mbcliplen((const unsigned char *) workstr, len, len - 1);
> else
> len -= -1;
>
> Surely there's one too many minus signs in that last?
Bug by Joe; review by Tom; patch attached; please apply.
Almost sounds like a short poem ;-)
Joe