翰高数据库 timestamp with time zone 返回
SqlSugar
沟通中
2
113
悬赏:0 飞吻
错误:Cannot write DateTime with Kind=Local to HGDB type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value')
代码: await db.Deleteable<RefreshToken>().Where(t => t.CreateTime < DateTime.Now.AddDays(-1)).ExecuteCommandAsync();
转换的Sql语句:【DELETE FROM "RefreshToken" WHERE ( "CreateTime" < ('2026-02-02 19:41:04' + ('-1'||'Day')::INTERVAL) ) 】
热忱回答(2)
-
fate sta VIP0
1周前这个问一下他们官方。
0 回复 -
VIP0
1周前找到问题了,已经解决了,问题是Nhgdb.dll 版本问题
0 回复