seata Two-dimensional array isn't supported when rolling back in Phase 2

efzxgjgh  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(69)
  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

When the field type is a two-dimensional array, it always cannot be rolled back.

create table t_a (
    id bigint primary key ,
    g int[][]
);

insert into t_a values (1, '{{1, 1, 1}, {2, 2, 2}}');

in org.apache.seata.rm.datasource.sql.serial.SerialArray#equals method, maybe Arrays.equals should be instead of Arrays deepEquals ?

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

Just paste your stack trace here!

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. xxx
  2. xxx
  3. xxx

Minimal yet complete reproducer code (or URL to code):

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • JDK version(e.g. java -version ): oracle jdk 17
  • Seata client version: V2.0.0
  • Database version: postgresql 16
  • OS(e.g. uname -a ):
  • Others:

相关问题