Skip to content

Commit

Permalink
Add a testcase for BETWEEN sqlc.arg(min) AND sqlc.arg(max)
Browse files Browse the repository at this point in the history
issue #2277
  • Loading branch information
Jille committed Jun 24, 2023
1 parent 4fe183a commit 6316c2e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions internal/endtoend/testdata/between_args/mysql/go/query.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions internal/endtoend/testdata/between_args/mysql/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ WHERE products.price BETWEEN ? AND ?;
SELECT *
FROM products as p
WHERE p.price BETWEEN ? AND ?;

-- name: GetBetweenPricesNamed :many
SELECT *
FROM products
WHERE price BETWEEN sqlc.arg(min_price) AND sqlc.arg(max_price);

0 comments on commit 6316c2e

Please sign in to comment.