Closed zey1996 closed 5 months ago
I use mariadb. this is some problem for create. I run main.go. the rootUser should be created. but it is not ok. If I delete if err := db.Take(&user).Error; err != nil {. the create will be ok. WHY?
create
main.go
if err := db.Take(&user).Error; err != nil {
Explain your user case and expected results
I use mariadb. this is some problem for
create
. I runmain.go
. the rootUser should be created. but it is not ok. If I deleteif err := db.Take(&user).Error; err != nil {
. the create will be ok. WHY?