Update query not working
maheshjadav opened this issue · 1 comments
maheshjadav commented
Hello
i have this code
qsmsinsert1 := functions.NewSmsgatewayUpdate(id,name,created_by,updated_by,status,branch,created_at,updated_at)
//rowsUpdated, err := store.Update(qsmsinsert1)
rowsUpdated,err := store.Update(qsmsinsert1)
updated, err := store.Debug().Save(qsmsinsert1)
but when i run this rather then update it is insert into table. can somebody help me..
how do i update record?
roobre commented
Issue tracker is not a help forum. Your issue lacks code to reproduce it. Please take a more careful look to the examples and the documentation.