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

Commitfb2b088

Browse files
committed
Update /contrib/fuzzystrmatch error message to mention bytes, not just
'length', which can be characters.
1 parent3607cb0 commitfb2b088

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎contrib/fuzzystrmatch/fuzzystrmatch.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Joe Conway <mail@joeconway.com>
77
*
8-
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c,v 1.23 2007/01/05 22:19:18 momjian Exp $
8+
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c,v 1.24 2007/02/13 18:00:35 momjian Exp $
99
* Copyright (c) 2001-2007, PostgreSQL Global Development Group
1010
* ALL RIGHTS RESERVED;
1111
*
@@ -88,7 +88,7 @@ levenshtein(PG_FUNCTION_ARGS)
8888
if ((cols>MAX_LEVENSHTEIN_STRLEN+1)|| (rows>MAX_LEVENSHTEIN_STRLEN+1))
8989
ereport(ERROR,
9090
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
91-
errmsg("argument exceedsmaxlength: %d",
91+
errmsg("argument exceedsthe maximumlength of %d bytes",
9292
MAX_LEVENSHTEIN_STRLEN)));
9393

9494
/*
@@ -224,7 +224,7 @@ metaphone(PG_FUNCTION_ARGS)
224224
if (str_i_len>MAX_METAPHONE_STRLEN)
225225
ereport(ERROR,
226226
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
227-
errmsg("argument exceedsmaxlength: %d",
227+
errmsg("argument exceedsthe maximumlength of %d bytes",
228228
MAX_METAPHONE_STRLEN)));
229229

230230
if (!(str_i_len>0))
@@ -236,7 +236,7 @@ metaphone(PG_FUNCTION_ARGS)
236236
if (reqlen>MAX_METAPHONE_STRLEN)
237237
ereport(ERROR,
238238
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
239-
errmsg("outputlengthexceedsmaxlength: %d",
239+
errmsg("output exceedsthe maximumlength of %d bytes",
240240
MAX_METAPHONE_STRLEN)));
241241

242242
if (!(reqlen>0))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp