From f690920a752fa8e59dc9536dd14194b2141163d2 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 24 Apr 2003 21:16:45 +0000 Subject: Infrastructure for upgraded error reporting mechanism. elog.c is rewritten and the protocol is changed, but most elog calls are still elog calls. Also, we need to contemplate mechanisms for controlling all this functionality --- eg, how much stuff should appear in the postmaster log? And what API should libpq expose for it? --- src/backend/utils/adt/ruleutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/utils/adt/ruleutils.c') diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 31135ff97fb..581c5b20ecf 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -3,7 +3,7 @@ * back to source text * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.138 2003/04/08 23:20:02 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.139 2003/04/24 21:16:43 tgl Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -921,7 +921,7 @@ pg_get_constraintdef(PG_FUNCTION_ARGS) constraintId); /* Append the constraint source */ - appendStringInfo(&buf, DatumGetCString(DirectFunctionCall1(textout, val))); + appendStringInfoString(&buf, DatumGetCString(DirectFunctionCall1(textout, val))); break; } @@ -2846,7 +2846,7 @@ get_const_expr(Const *constval, deparse_context *context) */ if (strspn(extval, "0123456789+-eE.") == strlen(extval)) { - appendStringInfo(buf, extval); + appendStringInfoString(buf, extval); if (strcspn(extval, "eE.") != strlen(extval)) isfloat = true; /* it looks like a float */ } -- cgit v1.2.3