mirror of https://github.com/citusdata/citus.git
Handle no comment end chars
parent
9531cfd3bf
commit
f972b6fae9
|
@ -636,6 +636,13 @@ ExtractTopComment(const char *inputString)
|
||||||
commentEndCharsIndex++;
|
commentEndCharsIndex++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If there is no end of comment chars , return NULL */
|
||||||
|
if (inputString[commentEndCharsIndex] != '*' &&
|
||||||
|
inputString[commentEndCharsIndex + 1] != '/')
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (commentEndCharsIndex > commentStartCharsLength)
|
if (commentEndCharsIndex > commentStartCharsLength)
|
||||||
{
|
{
|
||||||
Datum substringTextDatum = DirectFunctionCall3(text_substr, PointerGetDatum(inputString),
|
Datum substringTextDatum = DirectFunctionCall3(text_substr, PointerGetDatum(inputString),
|
||||||
|
|
Loading…
Reference in New Issue