diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-05-17 22:35:13 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-05-17 22:35:13 +0000 |
commit | 22d641a7d42fba17e1f9310a8444763b4c3aa47f (patch) | |
tree | 5f0460209e700e7d1ea1a2dc48ea221fbf302853 /src/backend/parser/parse_expr.c | |
parent | 940f772a292124cb4506ffd7c9c2e953f9db3f33 (diff) | |
download | postgresql-22d641a7d42fba17e1f9310a8444763b4c3aa47f.tar.gz postgresql-22d641a7d42fba17e1f9310a8444763b4c3aa47f.zip |
Get rid of the last few uses of typeidTypeName() rather than
format_type_be() in error messages.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
-rw-r--r-- | src/backend/parser/parse_expr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index e29d5ca4b5c..9a11074ed91 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.117 2002/05/12 23:43:03 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.118 2002/05/17 22:35:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -366,7 +366,7 @@ transformExpr(ParseState *pstate, Node *expr) /* Combining operators other than =/<> is dubious... */ if (length(left_list) != 1 && strcmp(opname, "=") != 0 && strcmp(opname, "<>") != 0) - elog(ERROR, "Row comparison cannot use '%s'", + elog(ERROR, "Row comparison cannot use operator %s", opname); /* @@ -405,13 +405,13 @@ transformExpr(ParseState *pstate, Node *expr) opform = (Form_pg_operator) GETSTRUCT(optup); if (opform->oprresult != BOOLOID) - elog(ERROR, "'%s' result type of '%s' must return '%s'" + elog(ERROR, "%s has result type of %s, but must return %s" " to be used with quantified predicate subquery", - opname, typeidTypeName(opform->oprresult), - typeidTypeName(BOOLOID)); + opname, format_type_be(opform->oprresult), + format_type_be(BOOLOID)); if (get_func_retset(opform->oprcode)) - elog(ERROR, "'%s' must not return a set" + elog(ERROR, "%s must not return a set" " to be used with quantified predicate subquery", opname); |