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