mattn / go-adodb

Microsoft ActiveX Object DataBase driver for go that using exp/sql
http://mattn.kaoriya.net/
MIT License
142 stars 36 forks source link

Change CallMethod RollBack to RollBackTrans #42

Closed flibustenet closed 5 years ago

flibustenet commented 5 years ago

Hi,

With MSAccess I had a problem with transaction. When an error occurred in a transaction i do a Rollback but the .ldb file is not deleted even with db.Close. Then I could not continue, each insert or update was throwing an error, an error not related to the first error.

I don't know how it could work with oleutil.CallMethod(tx.c.db, "Rollback") without throwing an error but i found that with RollbackTrans it works.

mattn commented 5 years ago

Thank you