mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
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).
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/tutorial/beard.c,v 1.13 2005/10/15 02:49:52 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/tutorial/beard.c,v 1.14 2006/03/01 06:30:32 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -38,10 +38,10 @@ beard(Oid picture)
|
||||
ObjectIdGetDatum(picture),
|
||||
Int32GetDatum(INV_READ)));
|
||||
if (pic_fd < 0)
|
||||
elog(ERROR, "Cannot access picture large object");
|
||||
elog(ERROR, "could not access picture large object");
|
||||
|
||||
if (lo_read(pic_fd, (char *) &ihdr, sizeof(ihdr)) != sizeof(ihdr))
|
||||
elog(ERROR, "Picture large object corrupted");
|
||||
elog(ERROR, "picture large object corrupted");
|
||||
|
||||
beardOffset = (ihdr.size / 3) * 2;
|
||||
|
||||
@ -51,19 +51,19 @@ beard(Oid picture)
|
||||
beard = DatumGetObjectId(DirectFunctionCall1(lo_creat,
|
||||
Int32GetDatum(INV_MD)));
|
||||
if (beard == InvalidOid)
|
||||
elog(ERROR, "Cannot create new large object");
|
||||
elog(ERROR, "could not create new large object");
|
||||
|
||||
beard_fd = DatumGetInt32(DirectFunctionCall2(lo_open,
|
||||
ObjectIdGetDatum(beard),
|
||||
Int32GetDatum(INV_WRITE)));
|
||||
if (beard_fd < 0)
|
||||
elog(ERROR, "Cannot access beard large object");
|
||||
elog(ERROR, "could not access beard large object");
|
||||
|
||||
if (DatumGetInt32(DirectFunctionCall3(lo_lseek,
|
||||
Int32GetDatum(pic_fd),
|
||||
Int32GetDatum(beardOffset),
|
||||
Int32GetDatum(SEEK_SET))) < 0)
|
||||
elog(ERROR, "Cannot seek in picture large object");
|
||||
elog(ERROR, "could not seek in picture large object");
|
||||
|
||||
while ((cc = lo_read(pic_fd, buf, BUFSIZE)) > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user