Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vmathur12 authored Jul 29, 2024
1 parent 1120c82 commit 5f25f03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testdata/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ func Commit() error {
db := Createconnection()
defer db.Close()
bg, err := db.Begin()
if err != nil {
fmt.Println("err: ", err)
return err
}
db.Exec("DROP table u")
_, err = bg.Exec("create table u(id int)")
err = bg.Commit()
Expand Down

0 comments on commit 5f25f03

Please sign in to comment.