Do not throw from Parser

This commit is contained in:
Alexey Milovidov 2021-01-05 00:28:57 +03:00
parent fc9c440d3e
commit 858c2a474a

View File

@ -228,7 +228,8 @@ bool ParserTablePropertiesDeclarationList::parseImpl(Pos & pos, ASTPtr & node, E
{
if (primary_key)
{
throw Exception("Multiple primary keys are not allowed.", ErrorCodes::BAD_ARGUMENTS);
/// Multiple primary keys are not allowed.
return false;
}
primary_key = elem;
}