Fixed error [#METR-22462].

This commit is contained in:
Alexey Milovidov 2016-08-26 22:51:25 +03:00
parent 867b73b6b0
commit 31fcf61ee0

View File

@ -67,7 +67,7 @@ StoragePtr TableFunctionMerge::execute(ASTPtr ast_function, Context & context) c
ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
args[0] = evaluateConstantExpressionOrIdentidierAsLiteral(args[1], context);
args[1] = evaluateConstantExpressionAsLiteral(args[2], context);
args[1] = evaluateConstantExpressionAsLiteral(args[1], context);
String source_database = static_cast<const ASTLiteral &>(*args[0]).value.safeGet<String>();
String table_name_regexp = static_cast<const ASTLiteral &>(*args[1]).value.safeGet<String>();