mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 20:32:43 +00:00
Fix unit tests
This commit is contained in:
parent
8dd13987f3
commit
25d4764c60
@ -10,8 +10,12 @@ ReadSettings getReadSettings()
|
||||
auto query_context = CurrentThread::getQueryContext();
|
||||
if (query_context)
|
||||
return query_context->getReadSettings();
|
||||
else
|
||||
return Context::getGlobalContextInstance()->getReadSettings();
|
||||
|
||||
auto global_context = Context::getGlobalContextInstance();
|
||||
if (global_context)
|
||||
return global_context->getReadSettings();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user