diff options
author | Bruce Momjian | 2007-02-13 18:00:35 +0000 |
---|---|---|
committer | Bruce Momjian | 2007-02-13 18:00:35 +0000 |
commit | 8d6157f2c0870b4f90c4f91a822d3364c8f8af84 (patch) | |
tree | ec4eb5a7e8378b0ecb45874d9fdfc7a1a1cd7c4e | |
parent | d44300c2ce59ec8a9ea0813f5e868df8ad67b98c (diff) |
Update /contrib/fuzzystrmatch error message to mention bytes, not just
'length', which can be characters.
-rw-r--r-- | contrib/fuzzystrmatch/fuzzystrmatch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/fuzzystrmatch/fuzzystrmatch.c b/contrib/fuzzystrmatch/fuzzystrmatch.c index e59bd9c350..7d35b9ed2c 100644 --- a/contrib/fuzzystrmatch/fuzzystrmatch.c +++ b/contrib/fuzzystrmatch/fuzzystrmatch.c @@ -88,7 +88,7 @@ levenshtein(PG_FUNCTION_ARGS) if ((cols > MAX_LEVENSHTEIN_STRLEN + 1) || (rows > MAX_LEVENSHTEIN_STRLEN + 1)) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("argument exceeds max length: %d", + errmsg("argument exceeds the maximum length of %d bytes", MAX_LEVENSHTEIN_STRLEN))); /* @@ -224,7 +224,7 @@ metaphone(PG_FUNCTION_ARGS) if (str_i_len > MAX_METAPHONE_STRLEN) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("argument exceeds max length: %d", + errmsg("argument exceeds the maximum length of %d bytes", MAX_METAPHONE_STRLEN))); if (!(str_i_len > 0)) @@ -236,7 +236,7 @@ metaphone(PG_FUNCTION_ARGS) if (reqlen > MAX_METAPHONE_STRLEN) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("output length exceeds max length: %d", + errmsg("output exceeds the maximum length of %d bytes", MAX_METAPHONE_STRLEN))); if (!(reqlen > 0)) |