Skip to content

Commit

Permalink
chore(docs): updated CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlangzi committed Apr 23, 2024
1 parent c23fb11 commit f63bd67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [1.4.6] - 2014-04-21
## [1.4.6] - 2014-04-23
### Changed
- implements json.Marshaler and json.Unmarshaler on `ID` (#39)
- implements json.Marshaler and json.Unmarshaler on `ID` (#41)
- added `context` support in `tx.QueryRowBuilder` and `tx.QueryBuilder` (#42)

## [1.4.5] - 2014-04-20
### Changed
- used int64 instead of int in `Queryer.Count` (#37)
### Fixes
- fix(sqlbuilder): fixed WithWhere/WithOrderBy for empty builder (#39)
- fixed timer performance issue (#38)
- fixed StmtMaxIdleTime missing issue (#38)
- used int64 instead of int in `Queryer.Count` (#37)

## [1.4.4] - 2014-04-19
### Added
Expand Down
4 changes: 2 additions & 2 deletions tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestTx(t *testing.T) {
require.Equal(t, 3, users[2].ID)

users2 := make([]user, 0, 3)
rows, err = tx.Query("SELECT * FROM users WHERE id<4")
rows, err = tx.QueryBuilder(context.Background(), New("SELECT * FROM users WHERE id<{id}").Param("id", 4))
require.NoError(t, err)
err = rows.Bind(&users2)
require.NoError(t, err)
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestTx(t *testing.T) {
require.Equal(t, "1zzzz", u.Salt)

var u2 user
row2 := tx.QueryRow("SELECT * FROM users WHERE id=?", 2)
row2 := tx.QueryRowBuilder(context.Background(), New("SELECT * FROM users WHERE id={id}").Param("id", 2))
err = row2.Bind(&u2)
require.NoError(t, err)

Expand Down

0 comments on commit f63bd67

Please sign in to comment.