* back to source text
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.161 2003/12/28 21:57:37 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.162 2004/01/31 05:09:40 neilc Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
attname = get_relid_attribute_name(indrelid, attnum);
if (!colno || colno == keyno + 1)
- appendStringInfo(&buf, "%s", quote_identifier(attname));
+ appendStringInfoString(&buf, quote_identifier(attname));
keycoltype = get_atttype(indrelid, attnum);
}
else
/* Need parens if it's not a bare function call */
if (indexkey && IsA(indexkey, FuncExpr) &&
((FuncExpr *) indexkey)->funcformat == COERCE_EXPLICIT_CALL)
- appendStringInfo(&buf, "%s", str);
+ appendStringInfoString(&buf, str);
else
appendStringInfo(&buf, "(%s)", str);
}
string = ""; /* keep compiler quiet */
break;
}
- appendStringInfo(&buf, "%s", string);
+ appendStringInfoString(&buf, string);
/* Add ON UPDATE and ON DELETE clauses, if needed */
switch (conForm->confupdtype)
colName = get_relid_attribute_name(relId, DatumGetInt16(keys[j]));
if (j == 0)
- appendStringInfo(buf, "%s",
- quote_identifier(colName));
+ appendStringInfoString(buf, quote_identifier(colName));
else
- appendStringInfo(buf, ", %s",
- quote_identifier(colName));
+ appendStringInfo(buf, ", %s", quote_identifier(colName));
}
}
appendStringInfo(buf, sep);
sep = ", ";
- appendStringInfo(buf, "%s",
- quote_identifier(get_relid_attribute_name(rte->relid,
- tle->resdom->resno)));
+ appendStringInfoString(buf,
+ quote_identifier(get_relid_attribute_name(rte->relid,
+ tle->resdom->resno)));
}
appendStringInfo(buf, ") ");
quote_identifier(refname));
}
if (attname)
- appendStringInfo(buf, "%s", quote_identifier(attname));
+ appendStringInfoString(buf, quote_identifier(attname));
else
appendStringInfo(buf, "*");
}
{
if (col != rte->alias->colnames)
appendStringInfo(buf, ", ");
- appendStringInfo(buf, "%s",
- quote_identifier(strVal(lfirst(col))));
+ appendStringInfoString(buf,
+ quote_identifier(strVal(lfirst(col))));
}
appendStringInfoChar(buf, ')');
}
{
if (col != j->using)
appendStringInfo(buf, ", ");
- appendStringInfo(buf, "%s",
- quote_identifier(strVal(lfirst(col))));
+ appendStringInfoString(buf,
+ quote_identifier(strVal(lfirst(col))));
}
appendStringInfoChar(buf, ')');
}
{
if (col != j->alias->colnames)
appendStringInfo(buf, ", ");
- appendStringInfo(buf, "%s",
+ appendStringInfoString(buf,
quote_identifier(strVal(lfirst(col))));
}
appendStringInfoChar(buf, ')');
initStringInfo(&buf);
if (namespace)
appendStringInfo(&buf, "%s.", quote_identifier(namespace));
- appendStringInfo(&buf, "%s", quote_identifier(ident));
+ appendStringInfoString(&buf, quote_identifier(ident));
return buf.data;
}
appendStringInfo(&buf, "OPERATOR(%s.", quote_identifier(nspname));
}
- appendStringInfo(&buf, "%s", oprname);
+ appendStringInfoString(&buf, oprname);
if (nspname)
appendStringInfoChar(&buf, ')');
int nnames = length(opname);
if (nnames == 1)
- appendStringInfo(buf, "%s", strVal(lfirst(opname)));
+ appendStringInfoString(buf, strVal(lfirst(opname)));
else
{
appendStringInfo(buf, "OPERATOR(");
* Written by Peter Eisentraut
.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.181 2004/01/26 22:35:32 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.182 2004/01/31 05:09:41 neilc Exp $
*
*--------------------------------------------------------------------
*/
break;
case T_Float:
/* represented as a string, so just copy it */
- appendStringInfo(&buf, "%s", strVal(&arg->val));
+ appendStringInfoString(&buf, strVal(&arg->val));
break;
case T_String:
val = strVal(&arg->val);
* mode, quote it if it's not a vanilla identifier.
*/
if (flags & GUC_LIST_QUOTE)
- appendStringInfo(&buf, "%s", quote_identifier(val));
+ appendStringInfoString(&buf, quote_identifier(val));
else
- appendStringInfo(&buf, "%s", val);
+ appendStringInfoString(&buf, val);
}
break;
default: