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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
求教,结构体中时间字段定义为
Option<FastDateTime>
,当数据库中对应字段值为null
值时,查询结果值却不为None
,这个比较闹心。怎样才能让数据库字段是
null
时,返回的结构体字段值也为None
呢?测试表结构:
对应的结构体定义:
测试函数:
测试日志:
Beta Was this translation helpful? Give feedback.
All reactions