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/varlena.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/utils/adt/varlena.c') diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index 974e7f8fc6..7f928ec8ac 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.95 2003/03/10 22:28:18 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.96 2003/04/24 21:16:43 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1696,8 +1696,8 @@ replace_text(PG_FUNCTION_ARGS) left_text = LEFT(buf_text, from_sub_text); right_text = RIGHT(buf_text, from_sub_text, from_sub_text_len); - appendStringInfo(str, PG_TEXT_GET_STR(left_text)); - appendStringInfo(str, to_sub_str); + appendStringInfoString(str, PG_TEXT_GET_STR(left_text)); + appendStringInfoString(str, to_sub_str); pfree(buf_text); pfree(left_text); @@ -1705,7 +1705,7 @@ replace_text(PG_FUNCTION_ARGS) curr_posn = TEXTPOS(buf_text, from_sub_text); } - appendStringInfo(str, PG_TEXT_GET_STR(buf_text)); + appendStringInfoString(str, PG_TEXT_GET_STR(buf_text)); pfree(buf_text); ret_text = PG_STR_GET_TEXT(str->data); -- cgit v1.2.1