mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Fixed all elog related warnings, as well as a few others.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: analyze.c,v 1.128 2000/01/10 05:20:21 momjian Exp $
|
||||
* $Id: analyze.c,v 1.129 2000/01/15 02:59:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -732,7 +732,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
|
||||
break;
|
||||
|
||||
default:
|
||||
elog(ERROR, "parser: unrecognized constraint (internal error)", NULL);
|
||||
elog(ERROR, "parser: unrecognized constraint (internal error)");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1598,7 +1598,7 @@ transformForUpdate(Query *qry, List *forUpdate)
|
||||
i++;
|
||||
}
|
||||
if (l2 == NULL)
|
||||
elog(ERROR, "FOR UPDATE: relation %s not found in FROM clause", lfirst(l));
|
||||
elog(ERROR, "FOR UPDATE: relation %s not found in FROM clause", strVal(lfirst(l)));
|
||||
}
|
||||
|
||||
qry->rowMark = rowMark;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.125 2000/01/14 22:11:34 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.126 2000/01/15 02:59:32 petere Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@@ -3622,7 +3622,7 @@ Character: character '(' Iconst ')'
|
||||
if ($3 < 1)
|
||||
elog(ERROR,"length for '%s' type must be at least 1",$1);
|
||||
else if ($3 > MaxAttrSize)
|
||||
elog(ERROR,"length for type '%s' cannot exceed %d",$1,
|
||||
elog(ERROR,"length for type '%s' cannot exceed %ld",$1,
|
||||
MaxAttrSize);
|
||||
|
||||
/* we actually implement this sort of like a varlen, so
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.34 1999/12/24 06:43:33 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.35 2000/01/15 02:59:32 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -261,7 +261,7 @@ transformArraySubscripts(ParseState *pstate,
|
||||
typeelement = type_struct_array->typelem;
|
||||
if (typeelement == InvalidOid)
|
||||
elog(ERROR, "transformArraySubscripts: type %s is not an array",
|
||||
type_struct_array->typname);
|
||||
NameStr(type_struct_array->typname));
|
||||
|
||||
/* Get the type tuple for the array element type */
|
||||
type_tuple = SearchSysCacheTuple(TYPEOID,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.27 1999/11/22 17:56:21 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.28 2000/01/15 02:59:32 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -226,7 +226,7 @@ GetArrayElementType(Oid typearray)
|
||||
if (type_struct_array->typelem == InvalidOid)
|
||||
{
|
||||
elog(ERROR, "GetArrayElementType: type %s is not an array",
|
||||
type_struct_array->typname);
|
||||
NameStr(type_struct_array->typname));
|
||||
}
|
||||
|
||||
return type_struct_array->typelem;
|
||||
|
||||
Reference in New Issue
Block a user