diff options
author | Neil Conway <neilc@samurai.com> | 2006-03-01 06:30:32 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2006-03-01 06:30:32 +0000 |
commit | 8e5a10d46c38976e40504456a5978caa53b77b3c (patch) | |
tree | b94a9b7673f6c919ebacc3546f72032b8eb05657 /contrib/tablefunc/tablefunc.c | |
parent | 87fa10a42613ee1ca9cc4bb22eb163f8e179b3f8 (diff) | |
download | postgresql-8e5a10d46c38976e40504456a5978caa53b77b3c.tar.gz postgresql-8e5a10d46c38976e40504456a5978caa53b77b3c.zip |
This patch makes the error message strings throughout the backend
more compliant with the error message style guide. In particular,
errdetail should begin with a capital letter and end with a period,
whereas errmsg should not. I also fixed a few related issues in
passing, such as fixing the repeated misspelling of "lexeme" in
contrib/tsearch2 (per Tom's suggestion).
Diffstat (limited to 'contrib/tablefunc/tablefunc.c')
-rw-r--r-- | contrib/tablefunc/tablefunc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c index 0d8a17ea619..0beb44f5845 100644 --- a/contrib/tablefunc/tablefunc.c +++ b/contrib/tablefunc/tablefunc.c @@ -894,9 +894,9 @@ get_crosstab_tuplestore(char *sql, ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), errmsg("invalid return type"), - errdetail("query-specified return " \ + errdetail("Query-specified return " \ "tuple has %d columns but crosstab " \ - "returns %d", tupdesc->natts, result_ncols))); + "returns %d.", tupdesc->natts, result_ncols))); /* allocate space */ values = (char **) palloc(result_ncols * sizeof(char *)); @@ -1531,12 +1531,12 @@ validateConnectbyTupleDesc(TupleDesc tupdesc, bool show_branch, bool show_serial /* check that the type of the fifth column is INT4 */ if (show_branch && show_serial && tupdesc->attrs[4]->atttypid != INT4OID) - elog(ERROR, "Query-specified return tuple not valid for Connectby: " + elog(ERROR, "query-specified return tuple not valid for Connectby: " "fifth column must be type %s", format_type_be(INT4OID)); /* check that the type of the fifth column is INT4 */ if (!show_branch && show_serial && tupdesc->attrs[3]->atttypid != INT4OID) - elog(ERROR, "Query-specified return tuple not valid for Connectby: " + elog(ERROR, "query-specified return tuple not valid for Connectby: " "fourth column must be type %s", format_type_be(INT4OID)); /* OK, the tupdesc is valid for our purposes */ |