[CP] fix a bug about empty table name in filter condition of information_schema.columns

This commit is contained in:
obdev 2022-12-28 10:38:23 +00:00 committed by ob-robot
parent 4853e91041
commit c40dbae25e

View File

@ -392,7 +392,8 @@ int ObInfoSchemaColumnsTable::check_database_table_filter()
// 指定db_name,同时指定了tbl_name
const ObTableSchema *filter_table_schema = NULL;
ObString table_name = start_key_obj_ptr[1].get_varchar();
if (OB_FAIL(schema_guard_->get_table_schema(tenant_id_,
if (table_name.empty()) {
} else if (OB_FAIL(schema_guard_->get_table_schema(tenant_id_,
filter_database_schema->get_database_id(),
table_name,
false/*is_index*/,