Skip to content

Commit

Permalink
Fix duplicate table creation in global db (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuan authored Jan 21, 2021
1 parent bfb69ae commit f0ebc85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion production/catalog/src/ddl_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <memory>

#include "gaia/common.hpp"
#include "gaia/db/catalog.hpp"
#include "gaia/exception.hpp"
#include "db_helpers.hpp"
#include "fbs_generator.hpp"
Expand Down Expand Up @@ -693,7 +694,7 @@ inline gaia_id_t ddl_executor_t::find_db_id_no_lock(const string& dbname) const

string ddl_executor_t::get_full_table_name(const string& db, const string& table)
{
if (db.empty())
if (db.empty() || db == c_empty_db_name)
{
return table;
}
Expand Down

0 comments on commit f0ebc85

Please sign in to comment.