From 81b5c8a1364e7d287fb0aaac848f7f84e64b86d3 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 28 Jul 2003 00:09:16 +0000 Subject: A visit from the message-style police ... --- src/backend/commands/functioncmds.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/backend/commands/functioncmds.c') diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c index f351b0f2dcb..9f17eff84fa 100644 --- a/src/backend/commands/functioncmds.c +++ b/src/backend/commands/functioncmds.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.29 2003/07/20 21:56:32 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.30 2003/07/28 00:09:14 tgl Exp $ * * DESCRIPTION * These routines take the parse tree and pick out the @@ -106,12 +106,12 @@ compute_return_type(TypeName *returnType, Oid languageOid, languageOid != ClanguageId) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_OBJECT), - errmsg("type %s does not exist", typnam))); + errmsg("type \"%s\" does not exist", typnam))); /* Otherwise, go ahead and make a shell type */ ereport(NOTICE, (errcode(ERRCODE_UNDEFINED_OBJECT), - errmsg("type %s is not yet defined", typnam), + errmsg("type \"%s\" is not yet defined", typnam), errdetail("Creating a shell type definition."))); namespaceId = QualifiedNameGetCreationNamespace(returnType->names, &typname); @@ -862,7 +862,7 @@ CreateCast(CreateCastStmt *stmt) if (procstruct->pronargs != 1) ereport(ERROR, (errcode(ERRCODE_INVALID_OBJECT_DEFINITION), - errmsg("cast function must take 1 argument"))); + errmsg("cast function must take one argument"))); if (procstruct->proargtypes[0] != sourcetypeid) ereport(ERROR, (errcode(ERRCODE_INVALID_OBJECT_DEFINITION), @@ -962,7 +962,7 @@ CreateCast(CreateCastStmt *stmt) if (HeapTupleIsValid(tuple)) ereport(ERROR, (errcode(ERRCODE_DUPLICATE_OBJECT), - errmsg("cast from data type %s to data type %s already exists", + errmsg("cast from type %s to type %s already exists", TypeNameToString(stmt->sourcetype), TypeNameToString(stmt->targettype)))); -- cgit v1.2.3