From 30f77b29a71f9ea7876bff1a963b54fd7ac04cc9 Mon Sep 17 00:00:00 2001 From: Halil Ozan Akgul Date: Mon, 16 Aug 2021 13:27:03 +0300 Subject: [PATCH] Fixes some appendStringInfos in ruleutils_14.c Relevant PG commit: 110d81728a0a006abcf654543fc15346f8043dc0 --- src/backend/distributed/deparser/ruleutils_14.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/distributed/deparser/ruleutils_14.c b/src/backend/distributed/deparser/ruleutils_14.c index 229bba8f3..ef3b26cfb 100644 --- a/src/backend/distributed/deparser/ruleutils_14.c +++ b/src/backend/distributed/deparser/ruleutils_14.c @@ -2091,7 +2091,7 @@ get_select_query_def(Query *query, deparse_context *context, appendContextKeyword(context, " FETCH FIRST (", -PRETTYINDENT_STD, PRETTYINDENT_STD, 0); get_rule_expr(query->limitCount, context, false); - appendStringInfo(buf, ") ROWS WITH TIES"); + appendStringInfoString(buf, ") ROWS WITH TIES"); } else { @@ -8446,7 +8446,7 @@ get_range_partbound_string(List *bound_datums) memset(&context, 0, sizeof(deparse_context)); context.buf = buf; - appendStringInfoString(buf, "("); + appendStringInfoChar(buf, '('); sep = ""; foreach(cell, bound_datums) {