Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: Fix a few incorrect testcases
These test cases weren't valid when sent to a running PostgreSQL
database.
  • Loading branch information
kyleconroy committed Oct 4, 2023
commit 27833d046ac0134a29e7c1773cf178e3ee1c12a5
2 changes: 1 addition & 1 deletion internal/endtoend/testdata/any/pgx/v4/go/query.sql.go

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

2 changes: 1 addition & 1 deletion internal/endtoend/testdata/any/pgx/v4/query.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- name: Any :many
SELECT id
FROM bar
WHERE foo = ANY($1::bigserial[]);
WHERE id = ANY($1::bigint[]);
2 changes: 1 addition & 1 deletion internal/endtoend/testdata/any/pgx/v5/go/query.sql.go

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

2 changes: 1 addition & 1 deletion internal/endtoend/testdata/any/pgx/v5/query.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- name: Any :many
SELECT id
FROM bar
WHERE foo = ANY($1::bigserial[]);
WHERE id = ANY($1::bigint[]);
2 changes: 1 addition & 1 deletion internal/endtoend/testdata/any/stdlib/go/query.sql.go

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

2 changes: 1 addition & 1 deletion internal/endtoend/testdata/any/stdlib/query.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- name: Any :many
SELECT id
FROM bar
WHERE foo = ANY($1::bigserial[]);
WHERE id = ANY($1::bigint[]);

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

Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ SELECT * FROM foo;

-- name: ExecFoo :exec
-- This function creates a Foo via :exec
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

-- name: ExecRowFoo :execrows
-- This function creates a Foo via :execrows
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

-- name: ExecResultFoo :execresult
-- This function creates a Foo via :execresult
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

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

Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ SELECT * FROM foo;

-- name: ExecFoo :exec
-- This function creates a Foo via :exec
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

-- name: ExecRowFoo :execrows
-- This function creates a Foo via :execrows
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

-- name: ExecResultFoo :execresult
-- This function creates a Foo via :execresult
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

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

Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ SELECT * FROM foo;

-- name: ExecFoo :exec
-- This function creates a Foo via :exec
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

-- name: ExecRowFoo :execrows
-- This function creates a Foo via :execrows
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

-- name: ExecResultFoo :execresult
-- This function creates a Foo via :execresult
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

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

Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ SELECT * FROM foo;

-- name: ExecFoo :exec
-- This function creates a Foo via :exec
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

-- name: ExecRowFoo :execrows
-- This function creates a Foo via :execrows
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');

-- name: ExecResultFoo :execresult
-- This function creates a Foo via :execresult
INSERT INTO foo (bar) VALUES ("bar");
INSERT INTO foo (bar) VALUES ('bar');