This is an automated email from the ASF dual-hosted git repository. jianbin pushed a commit to branch 2.6.0 in repository https://gitbox.apache.org/repos/asf/incubator-seata.git
commit c62a35db8418f00930d094ae6f516a99bfcc2c4b Author: jianbin <[email protected]> AuthorDate: Mon Mar 16 09:44:18 2026 +0800 test: Update comment in DmTableMetaCacheTest for clarity on unique index behavior --- .../seata/rm/datasource/sql/struct/cache/DmTableMetaCacheTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/DmTableMetaCacheTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/DmTableMetaCacheTest.java index 239c26bac5..aff2cfe58c 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/DmTableMetaCacheTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/DmTableMetaCacheTest.java @@ -386,7 +386,8 @@ public class DmTableMetaCacheTest { // Regression test for a bug fix: a composite unique index that contains primary key columns plus extra columns // should NOT be marked as PRIMARY. // Scenario: primary key (ID), unique index (ID, NAME) — unique index contains PK column but has extra NAME. - // Before the fix: the previous DM implementation matched by count (matchCols == pkcol.size()) and could misidentify + // Before the fix: the previous DM implementation matched by count (matchCols == pkcol.size()) and could + // misidentify // PRIMARY. // After the fix: using Set equality ({ID, NAME} != {ID}) prevents the index from being marked as PRIMARY --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
