-
Notifications
You must be signed in to change notification settings - Fork 881
gbase nvl判断时间语法错误 #1953
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
Comments
将'1970-01-01 00:00:00' 改为current可以执行 |
是什么问题,不生效,还是报错? |
正确的语法应该是什么 |
用自定义表达式解析解决一下 |
我也不知道 ,感觉是字符串没有正确的转为datetime ,用current当前时间是可以执行这个语句的,自定义表达式是在哪里配置? |
可以改为 datetime(1970-01-01 00:00:00) year to second 替换 '1970-01-01 00:00:00' |
2881099
added a commit
that referenced
this issue
Dec 24, 2024
2881099
added a commit
that referenced
this issue
Dec 24, 2024
为了最大兼容功能,被迫在 IsNull override 方法中使用正则表达式处理,请看代码:e7e169a |
valueStr 一般是使用 GBaseAdo.cs 转化后的 SQLString,不会为 null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述及重现代码:
UPDATE table SET startday = '2024-12-20 16:57:10.908', endday = (nvl(endday, '1970-01-01 00:00:00') + (days) units day)
WHERE id = 1
数据库版本
gbase8s
安装的Nuget包
3.5.101
.net framework/. net core? 及具体版本
The text was updated successfully, but these errors were encountered: