Skip to content

Commit

Permalink
Fix examples of receiving autoincrementing IDs (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecyca authored and taylorchu committed Jun 22, 2019
1 parent d3d1e28 commit a6e6512
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ sugg := &Suggestion{
}
sess := mysqlSession
sess.InsertInto("suggestions").
Columns("id", "title").
Columns("title").
Record(&sugg).
Exec()

Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func ExampleInsertStmt_Record() {
}
sess := mysqlSession
sess.InsertInto("suggestions").
Columns("id", "title").
Columns("title").
Record(&sugg).
Exec()

Expand Down

0 comments on commit a6e6512

Please sign in to comment.