优势8.1 vs 7.1
我正在将一些内部应用程序从 ADS 7.1 升级到 8.1。
不久前我被告知 AVG() 函数的返回值以及一些除法计算发生了变化,但我找不到有关这些变化的任何文档。
有谁知道我在说什么或有解释详细信息的链接吗?
I am in the process of upgrading a few in-house applications from ADS 7.1 to 8.1.
I was told a while back that there are changes in return values of the AVG()
function as well as some division calculations, but I cannot find any documentation on these changes.
Does anyone know what I'm talking about or have a link that explains the details?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
帮助文件中的“升级到版本 8.1 的效果”主题有一小段关于更改的内容,但没有详细介绍。
基本上,从版本 8.1 Advantage 开始,Advantage 现在遵守有关整数除法的 SQL 标准。 整数除法表达式的小数部分被截断,而在过去它们会产生浮点结果。
为了解决此更改,如果您仍希望某些表达式生成浮点数据类型,则可能必须强制转换它们。 例如:
这:
需要更改为:
The "Effects of Upgrading to Version 8.1" topic in the help file has a small paragraph about the change, but doesn't go into any details.
Basically, as of version 8.1 Advantage now adheres to the SQL standard with regards to integer division. Integer division expressions have the fractional portion truncated, where in the past they would result in a floating point result.
To address this change, you may have to cast certain expressions if you still want them to result in a floating point data type. For example:
This:
Would need to change to: