Open daifuyang opened 1 year ago
Add “parseTime=True“ in the end of mysql connection string. For example, "user:pass@tcp(127.0.0.1:3306)/dbname?charset=utf8mb4&parseTime=True&loc=Local".
This issue is stale because it has been open for 30 days with no activity.
Describe the bug How to use a datetime field under the 'model'? I can't query anything. Can you help me?
To Reproduce select
id
,name
,voice
,desc
,sample_rate_hertz
,voice_type
,words_per_minute
,gender
,status
,created_at
,updated_at
,deleted_at
fromvoice
where deleted_at = ?? = 0
has no data
select
id
,name
,voice
,desc
,sample_rate_hertz
,voice_type
,words_per_minute
,gender
,status
,created_at
,updated_at
,deleted_at
fromvoice
where deleted_at = 0 has data listExpected behavior
Screenshots
Environments (please complete the following information):