提交 10bf0863 编写于 作者: A Alexey Milovidov

Table functions MySQL and ODBC: development [#CLICKHOUSE-3114].

上级 28c6804c
......@@ -84,7 +84,7 @@ StoragePtr TableFunctionMySQL::execute(const ASTPtr & ast_function, const Contex
{
const ASTFunction & args_func = typeid_cast<const ASTFunction &>(*ast_function);
if (args_func.arguments)
if (!args_func.arguments)
throw Exception("Table function 'mysql' must have arguments.", ErrorCodes::LOGICAL_ERROR);
ASTs & args = typeid_cast<ASTExpressionList &>(*args_func.arguments).children;
......
......@@ -61,7 +61,7 @@ StoragePtr TableFunctionODBC::execute(const ASTPtr & ast_function, const Context
{
const ASTFunction & args_func = typeid_cast<const ASTFunction &>(*ast_function);
if (args_func.arguments)
if (!args_func.arguments)
throw Exception("Table function 'odbc' must have arguments.", ErrorCodes::LOGICAL_ERROR);
ASTs & args = typeid_cast<ASTExpressionList &>(*args_func.arguments).children;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册