fix: inner 655 (#2232) (#2241)

This commit is contained in:
LUA
2020-11-05 14:04:40 +08:00
committed by wenyh1
parent bf2a4020ce
commit f41a9da6e5

View File

@@ -105,7 +105,10 @@ public class ViewMeta {
}
private void checkDuplicate(int type, Boolean isReplace) throws SQLException {
if (StringUtil.isEmpty(schema)) {
String msg = "No database selected";
throw new SQLException(msg, "3D000", ErrorCode.ER_NO_DB_ERROR);
}
ViewMeta viewNode = tmManager.getCatalogs().get(schema).getViewMetas().get(viewName);
//.getSyncView(schema,viewName);
StructureMeta.TableMeta tableMeta = tmManager.getCatalogs().get(schema).getTableMeta(viewName);