mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 02:00:49 +00:00
dbms: development [#CONV-2944].
This commit is contained in:
parent
2aa2af9950
commit
115c619a70
@ -36,7 +36,11 @@ StoragePtr StorageFactory::get(
|
|||||||
/** В запросе в качестве аргумента для движка указано имя конфигурационной секции,
|
/** В запросе в качестве аргумента для движка указано имя конфигурационной секции,
|
||||||
* в которой задан список удалённых серверов.
|
* в которой задан список удалённых серверов.
|
||||||
*/
|
*/
|
||||||
ASTs & args = dynamic_cast<ASTFunction &>(*dynamic_cast<ASTCreateQuery &>(*query).storage).children;
|
ASTs & args =
|
||||||
|
dynamic_cast<ASTExpressionList &>(
|
||||||
|
*dynamic_cast<ASTFunction &>(
|
||||||
|
*dynamic_cast<ASTCreateQuery &>(*query).storage).children.at(0)).children;
|
||||||
|
|
||||||
if (args.size() != 3)
|
if (args.size() != 3)
|
||||||
throw Exception("Storage Distributed requires exactly 3 parameters"
|
throw Exception("Storage Distributed requires exactly 3 parameters"
|
||||||
" - name of configuration section with list of remote servers, name of remote database and name of remote table.",
|
" - name of configuration section with list of remote servers, name of remote database and name of remote table.",
|
||||||
|
Loading…
Reference in New Issue
Block a user