From 7f2fddeed21591c3356c016d24d7200c23b7dd25 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 23 Jun 2015 02:17:49 +0300 Subject: [PATCH] dbms: fixed error in materialized views after refactoring [#METR-16945]. --- dbms/src/Storages/StorageMaterializedView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dbms/src/Storages/StorageMaterializedView.cpp b/dbms/src/Storages/StorageMaterializedView.cpp index b55e36b3d8f..b8f14a4e8e3 100644 --- a/dbms/src/Storages/StorageMaterializedView.cpp +++ b/dbms/src/Storages/StorageMaterializedView.cpp @@ -48,6 +48,7 @@ StorageMaterializedView::StorageMaterializedView( /// Если запрос ATTACH, то к этому моменту внутренняя таблица уже должна быть подключена. if (attach_) { + data = context.tryGetTable(database_name, inner_table_name); if (!data) throw Exception("Inner table is not attached yet." " Materialized view: " + database_name + "." + table_name + "."