Skip to content
Snippets Groups Projects
  • Bruce Momjian's avatar
    c51a049e
    Tom Lane wrote: · c51a049e
    Bruce Momjian authored
    > 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?
    
    Joe Conway
    c51a049e
    History
    Tom Lane wrote:
    Bruce Momjian authored
    > 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?
    
    Joe Conway