mirror of
https://github.com/postgres/postgres.git
synced 2025-11-13 16:22:44 +03:00
Change elog(WARN) to elog(ERROR) and elog(ABORT).
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.15 1997/11/28 17:27:08 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.16 1998/01/05 03:30:50 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -402,7 +402,7 @@ tg_rewriteQuery(TgRecipe * r,
|
||||
{
|
||||
if (nodeTag(orig->qual) == T_List)
|
||||
{
|
||||
elog(WARN, "tg_rewriteQuery: Whoa! why is my qual a List???");
|
||||
elog(ABORT, "tg_rewriteQuery: Whoa! why is my qual a List???");
|
||||
}
|
||||
orig->qual = tg_rewriteParamsInExpr(orig->qual, inputQlist);
|
||||
}
|
||||
@@ -629,7 +629,7 @@ tg_rewriteParamsInExpr(Node *expression, QueryTreeList *inputQlist)
|
||||
}
|
||||
else
|
||||
{
|
||||
elog(WARN, "tg_rewriteParamsInExpr:can't substitute for parameter %d when that input is unconnected", p->paramid);
|
||||
elog(ABORT, "tg_rewriteParamsInExpr:can't substitute for parameter %d when that input is unconnected", p->paramid);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -719,13 +719,13 @@ getParamTypes(TgElement * elem, Oid typev[])
|
||||
{
|
||||
if (parameterCount == 8)
|
||||
{
|
||||
elog(WARN,
|
||||
elog(ABORT,
|
||||
"getParamTypes: Ingredients cannot take > 8 arguments");
|
||||
}
|
||||
t = elem->inTypes->val[j];
|
||||
if (strcmp(t, "opaque") == 0)
|
||||
{
|
||||
elog(WARN,
|
||||
elog(ABORT,
|
||||
"getParamTypes: Ingredient functions cannot take type 'opaque'");
|
||||
}
|
||||
else
|
||||
@@ -733,7 +733,7 @@ getParamTypes(TgElement * elem, Oid typev[])
|
||||
toid = TypeGet(elem->inTypes->val[j], &defined);
|
||||
if (!OidIsValid(toid))
|
||||
{
|
||||
elog(WARN, "getParamTypes: arg type '%s' is not defined", t);
|
||||
elog(ABORT, "getParamTypes: arg type '%s' is not defined", t);
|
||||
}
|
||||
if (!defined)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user