this is my code ,and the sql statement can execute ,but i want it to be rollbacked !!
‘’‘model.Orm.Begin()
model.Orm.Tx.Exec("INSERT into goods_attr(goods_attr_name)VALUE (’"+goods_attr_name+"’) ")
e :=model.Orm.Tx.Rollback()’’’
Which ORM package are you using?
1 Like
I do not know your ORM library, but I see Rollback and I do not see Commit.
1 Like
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.