Skip to content

Commit 3d1fe9c

Browse files
committed
Fixed empty database path
1 parent 2a4923c commit 3d1fe9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/core/kqp/proxy_service/kqp_proxy_service_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,11 +658,11 @@ class TDatabasesCache {
658658
public:
659659
template<typename TEvent>
660660
bool SetDatabaseIdOrDeffer(TEvent& event, std::function<void(Ydb::StatusIds::StatusCode, NYql::TIssues)> errorHandler, TActorContext actorContext) {
661-
if (!event->Get()->GetDatabaseId().empty()) {
661+
const auto& database = CanonizePath(event->Get()->GetDatabase());
662+
if (!event->Get()->GetDatabaseId().empty() || database.empty()) {
662663
return true;
663664
}
664665

665-
const auto& database = CanonizePath(event->Get()->GetDatabase());
666666
auto& databaseInfo = DatabasesCache[database];
667667
if (databaseInfo.DatabaseId) {
668668
event->Get()->SetDatabaseId(databaseInfo.DatabaseId);

0 commit comments

Comments
 (0)