Skip to content

Commit f0ebc85

Browse files
authored
Fix duplicate table creation in global db (#498)
1 parent bfb69ae commit f0ebc85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

production/catalog/src/ddl_executor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <memory>
99

1010
#include "gaia/common.hpp"
11+
#include "gaia/db/catalog.hpp"
1112
#include "gaia/exception.hpp"
1213
#include "db_helpers.hpp"
1314
#include "fbs_generator.hpp"
@@ -693,7 +694,7 @@ inline gaia_id_t ddl_executor_t::find_db_id_no_lock(const string& dbname) const
693694

694695
string ddl_executor_t::get_full_table_name(const string& db, const string& table)
695696
{
696-
if (db.empty())
697+
if (db.empty() || db == c_empty_db_name)
697698
{
698699
return table;
699700
}

0 commit comments

Comments
 (0)