dbms: development [#CONV-2944].

This commit is contained in:
Alexey Milovidov 2012-05-22 20:00:25 +00:00
parent 2aa2af9950
commit 115c619a70

View File

@ -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)
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.",