diff options
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); |