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:修复达梦数据库上时间相减永远输出为0的问题 #1973

Merged
merged 5 commits into from
Feb 7, 2025

Conversation

EsonXie
Copy link
Contributor

@EsonXie EsonXie commented Feb 7, 2025

我们产品在达梦上适配的过程中存在DateTime1-DateTime2的这种查询,并且会作为查询结果返回,当前版本中查询结果在转换时会直接返回0值,其原因是因为达梦数据库查询出来的结果为INTERVAL '000003576 16:47:38.832000' DAY TO SECOND这种形式,这种字符串代码转换数值类型直接就失败了并返回0
代码已经修改,我估计其他适用达梦的人也会返回

@EsonXie EsonXie closed this Feb 7, 2025
@EsonXie EsonXie reopened this Feb 7, 2025
@2881099 2881099 merged commit 5f36b72 into dotnetcore:master Feb 7, 2025
1 check passed
2881099 added a commit that referenced this pull request Feb 10, 2025
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