diff --git a/src/backend/distributed/utils/attribute.c b/src/backend/distributed/utils/attribute.c index 4761aef02..dd0a95f13 100644 --- a/src/backend/distributed/utils/attribute.c +++ b/src/backend/distributed/utils/attribute.c @@ -630,6 +630,8 @@ ExtractTopComment(const char *inputString) /* Skip the comment start characters */ commentEndCharsIndex += commentStartCharsLength; + + /* Find the first comment end character */ while (commentEndCharsIndex < inputStringLen && !(inputString[commentEndCharsIndex] == '*' && inputString [commentEndCharsIndex + 1] == '/'))