You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
liaohongxing
changed the title
The behavior of Gorm for nil values has changed after The behavior of Gorm for nil values has changed after v2.5
The behavior of Gorm for nil values has changed after v2.5
Dec 20, 2024
Hello,
I encountered an issue with the following code:
golang version: v1.23.4
carbon version: v2.5.2
time zone: Asia/Shanghai
I expected to get:
But I actually get:
从 github.com/golang-module 切换到 github.com/dromara 后,发现跟gorm配合出现问题,当New出一个包含carbon的结构体后,没有给字段赋值时,对nil值处理出现问题 ,之前是正确的 null 值,现在是空字符串,导致插入数据库报错。
The text was updated successfully, but these errors were encountered: