diff --git a/src/backend/distributed/utils/attribute.c b/src/backend/distributed/utils/attribute.c index 2ffd1e416..b7014b5cc 100644 --- a/src/backend/distributed/utils/attribute.c +++ b/src/backend/distributed/utils/attribute.c @@ -715,9 +715,13 @@ ExtractTopComment(const char *inputString) if (commentEndCharsIndex > commentStartCharsLength) { - Datum substringTextDatum = DirectFunctionCall3(text_substr, PointerGetDatum(inputString), - Int32GetDatum(commentStartCharsLength), - Int32GetDatum(commentEndCharsIndex - commentStartCharsLength)); + Datum substringTextDatum = DirectFunctionCall3(text_substr, PointerGetDatum( + inputString), + Int32GetDatum( + commentStartCharsLength), + Int32GetDatum( + commentEndCharsIndex - + commentStartCharsLength)); return TextDatumGetCString(substringTextDatum); } else @@ -726,6 +730,7 @@ ExtractTopComment(const char *inputString) } } + /* EscapeCommentChars adds a backslash before each occurrence of '*' or '/' in the input string */ static char * EscapeCommentChars(const char *str)