Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

主键包含日期类型的字段,没有生成undolog,导致报错后无法回滚 #7081

Open
lbj812 opened this issue Dec 27, 2024 · 1 comment

Comments

@lbj812
Copy link

lbj812 commented Dec 27, 2024

分区表是通过【创建日期:日期型】字段按年份做分区,然后分区表的要求是分区字段必须包含在主键中,也就是主键必须把分区字段包含进来,否则无法分区。
经过测试,undo_log表中没有生成记录。
导致的后果:报错后无法回滚

@ChinaJeckXu
Copy link
Contributor

日期存储建议用豪秒值,我是这么做的,不影响分区和主键约束

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants