diff options
author | Bruce Momjian <bruce@momjian.us> | 2007-02-13 18:00:35 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2007-02-13 18:00:35 +0000 |
commit | fb2b088cf461fdf876f2b24dd86ca26241a6a584 (patch) | |
tree | ef5f56e781cc86fccc5e45cdbb197a9c6e77002d | |
parent | 3607cb04884ec193c9ffc3027292e89e3ef1182f (diff) | |
download | postgresql-fb2b088cf461fdf876f2b24dd86ca26241a6a584.tar.gz postgresql-fb2b088cf461fdf876f2b24dd86ca26241a6a584.zip |
Update /contrib/fuzzystrmatch error message to mention bytes, not just
'length', which can be characters.
-rw-r--r-- | contrib/fuzzystrmatch/fuzzystrmatch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/fuzzystrmatch/fuzzystrmatch.c b/contrib/fuzzystrmatch/fuzzystrmatch.c index 6af1fa4463b..923e6331b29 100644 --- a/contrib/fuzzystrmatch/fuzzystrmatch.c +++ b/contrib/fuzzystrmatch/fuzzystrmatch.c @@ -5,7 +5,7 @@ * * Joe Conway <mail@joeconway.com> * - * $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c,v 1.23 2007/01/05 22:19:18 momjian Exp $ + * $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c,v 1.24 2007/02/13 18:00:35 momjian Exp $ * Copyright (c) 2001-2007, PostgreSQL Global Development Group * ALL RIGHTS RESERVED; * @@ -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)) |