[CP] Change error code for select inner tables

This commit is contained in:
2149
2023-08-25 09:14:09 +00:00
committed by ob-robot
parent 3b77f03bc9
commit cd1c721414
5 changed files with 10 additions and 10 deletions

View File

@ -50,8 +50,8 @@ int ObShowCreateDatabase::inner_get_next_row(common::ObNewRow *&row)
if (OB_FAIL(calc_show_database_id(show_database_id))) {
LOG_WARN("fail to calc show database id", K(ret));
} else if (OB_UNLIKELY(OB_INVALID_ID == show_database_id)) {
ret = OB_ERR_UNEXPECTED;
LOG_USER_ERROR(OB_ERR_UNEXPECTED, "this table is used for show clause, can't be selected");
ret = OB_NOT_SUPPORTED;
LOG_USER_ERROR(OB_NOT_SUPPORTED, "select a table which is used for show clause");
} else if (OB_FAIL(schema_guard_->get_database_schema(effective_tenant_id_,
show_database_id, db_schema))) {
LOG_WARN("failed to get database_schema", K(ret), K_(effective_tenant_id), K(show_database_id));