*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.47 1997/10/25 01:09:35 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.48 1997/10/30 16:34:22 thomas Exp $
*
*-------------------------------------------------------------------------
*/
}
if (result == NULL)
- elog(WARN, "attribute \"%s\" not found", ident->name);
+ elog(WARN, "attribute '%s' not found", ident->name);
return result;
}
/*
* expandAllTables -
- * turns '*' (in the target list) into a list of attributes (of all
- * relations in the range table)
+ * turns '*' (in the target list) into a list of attributes
+ * (of all relations in the range table)
*/
static List *
expandAllTables(ParseState *pstate)
varattno(pstate->p_target_relation, name);
foreach(nxt, lnext(tl))
if (!strcmp(name, ((Ident *) lfirst(nxt))->name))
- elog (WARN, "Attribute %s should be specified only once", name);
+ elog (WARN, "Attribute '%s' should be specified only once", name);
}
}
handleTargetColname(pstate, &res->name, NULL, identname);
/*
- * here we want to look for column names only, not
- * relation
+ * here we want to look for column names only, not relation
+ * names (even though they can be stored in Ident nodes, too)
*/
-
- /*
- * names (even though they can be stored in Ident
- * nodes,
- */
- /* too) */
expr = transformIdent(pstate, (Node *) res->val, EXPR_COLUMN_FIRST);
type_id = exprType(expr);
type_len = tlen(get_id_type(type_id));
if (real_rtable_pos == test_rtable_pos)
{
if (target_result != NULL)
- elog(WARN, "Order/Group By %s is ambiguous", sortgroupby->name);
+ elog(WARN, "Order/Group By '%s' is ambiguous", sortgroupby->name);
else
target_result = target;
}
else
{
if (target_result != NULL)
- elog(WARN, "Order/Group By %s is ambiguous", sortgroupby->name);
+ elog(WARN, "Order/Group By '%s' is ambiguous", sortgroupby->name);
else
target_result = target;
}
attno = get_attnum(relid, attname);
if (attno < 0)
- elog(WARN, "cannot reference attribute %s of tuple params/return values for functions", attname);
+ elog(WARN, "cannot reference attribute '%s' of tuple params/return values for functions", attname);
typeid = find_atttype(relid, attname);
resnode = makeResdom(1,
else
{
elog(WARN,
- "Function %s has bad returntype %d",
+ "Function '%s' has bad returntype %d",
funcname, argtype);
}
}
}
- elog(WARN, "Function %s has bad returntype %d",
+ elog(WARN, "Function '%s' has bad returntype %d",
funcname, argtype);
break;
}
{
first_arg = lfirst(fargs);
if (first_arg == NULL)
- elog(WARN, "function %s does not allow NULL input", funcname);
+ elog(WARN, "function '%s' does not allow NULL input", funcname);
}
/*
}
else
elog(WARN,
- "Type %s is not a relation type",
+ "Type '%s' is not a relation type",
tname(get_id_type(toid)));
argrelid = typeid_get_relid(toid);
if (exprType(pair) == UNKNOWNOID &&
!IsA(pair, Const))
{
- elog(WARN, "ParseFunc: no function named %s that takes in an unknown type as argument #%d", funcname, nargs);
+ elog(WARN, "ParseFunc: no function named '%s' that takes in an unknown type as argument #%d", funcname, nargs);
}
else
toid = exprType(pair);
}
if (!exists)
- elog(WARN, "no such attribute or function %s", funcname);
+ elog(WARN, "no such attribute or function '%s'", funcname);
/* got it */
funcnode = makeNode(Func);