Skip to content

Commit fb2b088

Browse files
committed
Update /contrib/fuzzystrmatch error message to mention bytes, not just
'length', which can be characters.
1 parent 3607cb0 commit fb2b088

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 exceeds max length: %d",
91+
errmsg("argument exceeds the maximum length 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 exceeds max length: %d",
227+
errmsg("argument exceeds the maximum length 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("output length exceeds max length: %d",
239+
errmsg("output exceeds the maximum length of %d bytes",
240240
MAX_METAPHONE_STRLEN)));
241241

242242
if (!(reqlen > 0))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy