mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
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? Joe Conway
This commit is contained in:
parent
192b0c94f2
commit
c51a049ef2
@ -15,7 +15,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.117 2002/09/04 20:31:29 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.118 2002/09/20 03:55:40 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -3376,7 +3376,7 @@ make_greater_string(const Const *str_const)
|
|||||||
if (datatype != BYTEAOID && pg_database_encoding_max_length() > 1)
|
if (datatype != BYTEAOID && pg_database_encoding_max_length() > 1)
|
||||||
len = pg_mbcliplen((const unsigned char *) workstr, len, len - 1);
|
len = pg_mbcliplen((const unsigned char *) workstr, len, len - 1);
|
||||||
else
|
else
|
||||||
len -= -1;
|
len -= 1;
|
||||||
|
|
||||||
if (datatype != BYTEAOID)
|
if (datatype != BYTEAOID)
|
||||||
workstr[len] = '\0';
|
workstr[len] = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user