From 8d25390c48e1aada0ea2a04fefe8e52d65eb893f Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 6 Sep 2015 01:47:13 +0300 Subject: [PATCH] dbms: fixed error [#METR-17758]. --- dbms/src/Interpreters/ExpressionAnalyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Interpreters/ExpressionAnalyzer.cpp b/dbms/src/Interpreters/ExpressionAnalyzer.cpp index 3f6adab8af6..b843968ddb3 100644 --- a/dbms/src/Interpreters/ExpressionAnalyzer.cpp +++ b/dbms/src/Interpreters/ExpressionAnalyzer.cpp @@ -937,7 +937,7 @@ static SharedPtr interpretSubquery( void ExpressionAnalyzer::addExternalStorage(ASTPtr & subquery_or_table_name) { /// При нераспределённых запросах, создание временных таблиц не имеет смысла. - if (!storage->isRemote()) + if (!(storage && storage->isRemote())) return; if (const ASTIdentifier * table = typeid_cast(&*subquery_or_table_name))