Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman committed Sep 6, 2024
1 parent c41de9c commit 7404aa8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,13 @@ public static boolean negotiate(ConnectContext context) throws IOException {
if (catalogName != null) {
CatalogIf catalogIf = context.getEnv().getCatalogMgr().getCatalog(catalogName);
if (catalogIf == null) {
context.getState().setError(ErrorCode.ERR_BAD_DB_ERROR, "No match catalog in doris: " + db);
context.getState()
.setError(ErrorCode.ERR_BAD_DB_ERROR, ErrorCode.ERR_BAD_DB_ERROR.formatErrorMsg(db));
return false;
}
if (catalogIf.getDbNullable(dbFullName) == null) {
context.getState().setError(ErrorCode.ERR_BAD_DB_ERROR, "No match database in doris: " + db);
context.getState()
.setError(ErrorCode.ERR_BAD_DB_ERROR, ErrorCode.ERR_BAD_DB_ERROR.formatErrorMsg(db));
return false;
}
}
Expand Down

0 comments on commit 7404aa8

Please sign in to comment.