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

fix:修复升级达梦数据库的表结构时由于select中字符串精读问题,而导致字符串截取的问题 #1922

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

EsonXie
Copy link

@EsonXie EsonXie commented Nov 13, 2024

在达梦数据库中,表结构上的字符串长度以字符为单位,而在cast函数转换数据类型时,是以字节为单位。
我们在使用FreeSql对达梦数据库进行表结构升级时,就会出现重新insert到原表时,一些较长的字符串就会被截断,导致数据不一致。

我跟达梦官方的论坛上提了问题,看这个情况应该就是达梦的特性。。。。
https://eco.dameng.com/community/question/ee053ae1bafba93b665c74a3b3f71b53

同时,我在单元测试中增加了升级测试的代码,原始的代码是不通过的

@2881099 2881099 merged commit 59e61e7 into dotnetcore:master Nov 13, 2024
1 check passed
2881099 added a commit that referenced this pull request Nov 13, 2024
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

Successfully merging this pull request may close these issues.

2 participants