diff options
| author | Vitalii Gridnev <[email protected]> | 2025-01-09 21:16:15 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-01-09 21:16:15 +0300 |
| commit | ef76fc060326b271cc4deff239b2bda8ac95bc60 (patch) | |
| tree | bbc8d4d0fa1d44f11d2d76c8f40aef542df987e5 | |
| parent | 12b269e9666baf7b6bc8364754b676eec6117c88 (diff) | |
fix coverity complains (#13244)
| -rw-r--r-- | ydb/core/kqp/host/kqp_host.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ydb/core/kqp/host/kqp_host.cpp b/ydb/core/kqp/host/kqp_host.cpp index 58eed2292a4..0f5af87a6c1 100644 --- a/ydb/core/kqp/host/kqp_host.cpp +++ b/ydb/core/kqp/host/kqp_host.cpp @@ -1104,7 +1104,6 @@ public: , KeepConfigChanges(keepConfigChanges) , IsInternalCall(isInternalCall) , FederatedQuerySetup(federatedQuerySetup) - , SessionCtx(new TKikimrSessionContext(funcRegistry, config, TAppData::TimeProvider, TAppData::RandomProvider, userToken, nullptr, userRequestContext)) , Config(config) , TypesCtx(MakeIntrusive<TTypeAnnotationContext>()) , PlanBuilder(CreatePlanBuilder(*TypesCtx)) @@ -1120,6 +1119,8 @@ public: FuncRegistry = FuncRegistryHolder.Get(); } + SessionCtx = MakeIntrusive<TKikimrSessionContext>(funcRegistry, config, TAppData::TimeProvider, TAppData::RandomProvider, userToken, nullptr, userRequestContext); + SessionCtx->SetDatabase(database); SessionCtx->SetDatabaseId(Gateway->GetDatabaseId()); SessionCtx->SetCluster(cluster); |
