mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Fix segfault in expression parser
This commit is contained in:
parent
c0d1be9cab
commit
dd98608b78
@ -1582,6 +1582,9 @@ public:
|
|||||||
{
|
{
|
||||||
if (parsed_interval_kind)
|
if (parsed_interval_kind)
|
||||||
{
|
{
|
||||||
|
if (elements.size() < 2)
|
||||||
|
return false;
|
||||||
|
|
||||||
elements[0] = makeASTFunction(interval_kind.toNameOfFunctionToIntervalDataType(), elements[0]);
|
elements[0] = makeASTFunction(interval_kind.toNameOfFunctionToIntervalDataType(), elements[0]);
|
||||||
node = makeASTFunction(function_name, elements[1], elements[0]);
|
node = makeASTFunction(function_name, elements[1], elements[0]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user