Update PostgreSQLDictionarySource.cpp

This commit is contained in:
tavplubix 2021-09-17 22:39:54 +03:00 committed by GitHub
parent f03484e0dc
commit 749b91347d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ namespace
{
QualifiedTableName qualified_name{schema, table};
if (qualified_name.database.empty())
if (qualified_name.database.empty() && !qualified_name.table.empty())
qualified_name = QualifiedTableName::parseFromString(qualified_name.table);
/// Do not need db because it is already in a connection string.