Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RangelReale committed Jun 6, 2024
1 parent 852abd9 commit 0babfce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ism/select_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func TestSelect(t *testing.T) {
}

func TestSelectBasic(t *testing.T) {
expectedQuery := "SELECT DISTINCT u.id, u.name, ua.address FROM users AS u INNER JOIN users_address AS a ON users.id = a.user_id WHERE age < 10 ORDER BY name ASC OFFSET 10 LIMIT 100"
var expectedArgs []any
expectedQuery := "SELECT DISTINCT u.id, u.name, ua.address FROM users AS u INNER JOIN users_address AS a ON users.id = a.user_id WHERE age < 10 ORDER BY name ASC OFFSET $1 LIMIT $2"
expectedArgs := []any{10, 100}

query := Select[testutils.TestTag](testutils.NewTestDialect(),
Distinct[testutils.TestTag](),
Expand Down

0 comments on commit 0babfce

Please sign in to comment.