mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Check if id is nullptr
This commit is contained in:
parent
3864c6746e
commit
fc24e599fd
@ -36,8 +36,9 @@ String ASTPartition::getID(char delim) const
|
||||
{
|
||||
if (value)
|
||||
return "Partition";
|
||||
else
|
||||
return "Partition_ID" + (delim + id->getID());
|
||||
|
||||
std::string id_string = id ? id->getID() : "";
|
||||
return "Partition_ID" + (delim + id_string);
|
||||
}
|
||||
|
||||
ASTPtr ASTPartition::clone() const
|
||||
|
Loading…
Reference in New Issue
Block a user