fix eliminate self-foreign_key join incorrectly

This commit is contained in:
JinmaoLi
2024-06-20 03:27:26 +00:00
committed by ob-robot
parent a164f7be0a
commit 7eb45945a9

View File

@ -1578,8 +1578,7 @@ int ObTransformJoinElimination::check_all_column_primary_key(const ObDMLStmt *st
LOG_WARN("unexpected null", K(ret));
} else {
// Only replace exprs with bin sort foreign keys
all_primary_key = !ob_is_string_type(res_type->get_type()) ||
ObCharset::is_bin_sort(res_type->get_collation_type());
all_primary_key = !ob_is_string_type(res_type->get_type());
}
}
}