Addition to prev. revision [#METR-2944].

This commit is contained in:
Alexey Milovidov 2016-12-12 10:27:47 +03:00
parent c1ecc41804
commit 6dcabed912

View File

@ -5,7 +5,7 @@
namespace DB
{
BlockIO InterpreterUseQuery::execute() override
BlockIO InterpreterUseQuery::execute()
{
const String & new_database = typeid_cast<const ASTUseQuery &>(*query_ptr).database;
context.getSessionContext().setCurrentDatabase(new_database);