good morning!!!!

Skip to content
Snippets Groups Projects
Commit 887bac0d authored by Carlos Nieto's avatar Carlos Nieto
Browse files

Changing transaction statements.

parent c4f72441
Branches
Tags
No related merge requests found
...@@ -215,13 +215,13 @@ func (self *Source) Use(database string) error { ...@@ -215,13 +215,13 @@ func (self *Source) Use(database string) error {
// Starts a transaction block. // Starts a transaction block.
func (self *Source) Begin() error { func (self *Source) Begin() error {
_, err := self.session.Exec(`BEGIN`) _, err := self.session.Exec(`START TRANSACTION`)
return err return err
} }
// Ends a transaction block. // Ends a transaction block.
func (self *Source) End() error { func (self *Source) End() error {
_, err := self.session.Exec(`END`) _, err := self.session.Exec(`COMMIT`)
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment