aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_coerce.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-05-17 22:35:13 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-05-17 22:35:13 +0000
commit22d641a7d42fba17e1f9310a8444763b4c3aa47f (patch)
tree5f0460209e700e7d1ea1a2dc48ea221fbf302853 /src/backend/parser/parse_coerce.c
parent940f772a292124cb4506ffd7c9c2e953f9db3f33 (diff)
downloadpostgresql-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_coerce.c')
-rw-r--r--src/backend/parser/parse_coerce.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/parser/parse_coerce.c b/src/backend/parser/parse_coerce.c
index 716cbcbb756..dbbaf033acd 100644
--- a/src/backend/parser/parse_coerce.c
+++ b/src/backend/parser/parse_coerce.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.72 2002/05/12 23:43:03 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.73 2002/05/17 22:35:12 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -133,7 +133,7 @@ coerce_type(ParseState *pstate, Node *node, Oid inputTypeId,
InvalidOid,
isExplicit);
if (!OidIsValid(funcId))
- elog(ERROR, "coerce_type: no conversion function from %s to %s",
+ elog(ERROR, "coerce_type: no conversion function from '%s' to '%s'",
format_type_be(inputTypeId), format_type_be(targetTypeId));
result = build_func_call(funcId, baseTypeId, makeList1(node));
@@ -392,8 +392,8 @@ select_common_type(List *typeids, const char *context)
* both types in different categories? then not much
* hope...
*/
- elog(ERROR, "%s types \"%s\" and \"%s\" not matched",
- context, typeidTypeName(ptype), typeidTypeName(ntype));
+ elog(ERROR, "%s types '%s' and '%s' not matched",
+ context, format_type_be(ptype), format_type_be(ntype));
}
else if (IsPreferredType(pcategory, ntype)
&& !IsPreferredType(pcategory, ptype)
@@ -448,8 +448,8 @@ coerce_to_common_type(ParseState *pstate, Node *node,
false);
else
{
- elog(ERROR, "%s unable to convert to type \"%s\"",
- context, typeidTypeName(targetTypeId));
+ elog(ERROR, "%s unable to convert to type %s",
+ context, format_type_be(targetTypeId));
}
return node;
}