Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc51a049

Browse files
committed
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
1 parent192b0c9 commitc51a049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/selfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.117 2002/09/04 20:31:29 momjian Exp $
18+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.118 2002/09/20 03:55:40 momjian Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -3376,7 +3376,7 @@ make_greater_string(const Const *str_const)
33763376
if (datatype!=BYTEAOID&&pg_database_encoding_max_length()>1)
33773377
len=pg_mbcliplen((constunsignedchar*)workstr,len,len-1);
33783378
else
3379-
len-=-1;
3379+
len-=1;
33803380

33813381
if (datatype!=BYTEAOID)
33823382
workstr[len]='\0';

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp