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)
8888if ((cols > MAX_LEVENSHTEIN_STRLEN + 1 )|| (rows > MAX_LEVENSHTEIN_STRLEN + 1 ))
8989ereport (ERROR ,
9090(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
91- errmsg ("argument exceedsmax length: %d " ,
91+ errmsg ("argument exceedsthe maximum length of %d bytes " ,
9292MAX_LEVENSHTEIN_STRLEN )));
9393
9494/*
@@ -224,7 +224,7 @@ metaphone(PG_FUNCTION_ARGS)
224224if (str_i_len > MAX_METAPHONE_STRLEN )
225225ereport (ERROR ,
226226(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
227- errmsg ("argument exceedsmax length: %d " ,
227+ errmsg ("argument exceedsthe maximum length of %d bytes " ,
228228MAX_METAPHONE_STRLEN )));
229229
230230if (!(str_i_len > 0 ))
@@ -236,7 +236,7 @@ metaphone(PG_FUNCTION_ARGS)
236236if (reqlen > MAX_METAPHONE_STRLEN )
237237ereport (ERROR ,
238238(errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
239- errmsg ("outputlength exceedsmax length: %d " ,
239+ errmsg ("output exceedsthe maximum length of %d bytes " ,
240240MAX_METAPHONE_STRLEN )));
241241
242242if (!(reqlen > 0 ))