aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_func.c
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1998-12-13 23:54:40 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1998-12-13 23:54:40 +0000
commit44cf948467d5f76632af26893ff048e17961ad1a (patch)
tree34a775b2bbdb0da32c00e410db27b713b74d1dfd /src/backend/parser/parse_func.c
parent1a8790f7ebaa46e0565f4aa221ca3b49a3eb5120 (diff)
downloadpostgresql-44cf948467d5f76632af26893ff048e17961ad1a.tar.gz
postgresql-44cf948467d5f76632af26893ff048e17961ad1a.zip
Fix up error messages when looking up functions and operators to not
make the sometimes misleading claim that more than one candidate was identified. Now say "Unable to identify...".
Diffstat (limited to 'src/backend/parser/parse_func.c')
-rw-r--r--src/backend/parser/parse_func.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c
index a95c1b46b5c..c2066a43b12 100644
--- a/src/backend/parser/parse_func.c
+++ b/src/backend/parser/parse_func.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.33 1998/12/13 04:16:51 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.34 1998/12/13 23:54:40 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -399,7 +399,7 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
}
else
{
- elog(ERROR,"Unable to select an aggregate function for type %s",
+ elog(ERROR,"Unable to select an aggregate function for type '%s'",
typeidTypeName(basetype));
}
}
@@ -986,7 +986,7 @@ func_get_detail(char *funcname,
if (*true_typeids == NULL)
{
func_error(NULL, funcname, nargs, oid_array,
- "There is more than one function that satisfies the given argument types"
+ "Unable to identify a function which satisfies the given argument types"
"\n\tYou will have to retype your query using explicit typecasts");
}