Skip to content

Commit

Permalink
Fix Exec() call in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thcyron committed Mar 7, 2016
1 parent 651aa98 commit 314fc3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ query, args, dest := sqlbuilder.Insert().
Set("name", "John").
Set("phone", "555").
Build()
err := db.Exec(query, args...)
res, err := db.Exec(query, args...)
```

**UPDATE**
Expand All @@ -53,7 +53,7 @@ query, args := sqlbuilder.Update().
Set("phone", "555").
Where("id = ?", 1).
Build()
err := db.Exec(query, args...)
res, err := db.Exec(query, args...)
```

**DELETE**
Expand All @@ -63,7 +63,7 @@ query, args := sqlbuilder.Delete().
From("customers").
Where("name = ?", "John").
Build()
err := db.Exec(query, args...)
res, err := db.Exec(query, args...)
```

Supported Dialects
Expand Down

0 comments on commit 314fc3a

Please sign in to comment.