Closed jmuwfq closed 3 months ago
Like this:
func (userDao *UserDao) UpdateByTx(tx *sql.Tx, user *User) (id int32, err error) { tx.Exec(....) }
How to simulate tx.Exec(), I tried many times but failed
Hi @jmuwfq! Closing as there is not enough information to help you, unfortunately. If the problem persists, reopen and provide the following information:
sqlmock
Thank you!
Like this:
How to simulate tx.Exec(), I tried many times but failed