go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
89 stars 678 forks source link

it is a report #680

Closed zey1996 closed 5 months ago

zey1996 commented 8 months ago

Explain your user case and expected results

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?