pull/6763/head^2
Gokhan Gulbiz 2023-03-20 08:49:39 +03:00
parent 8b09a4f8c0
commit 426cfd3ce5
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 8 additions and 3 deletions

View File

@ -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)