Skip to content

Commit a86d852

Browse files
tests: added invalid_queries_bar pgx test
1 parent 552a032 commit a86d852

File tree

6 files changed

+19
-0
lines changed

6 files changed

+19
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "1",
3+
"packages": [
4+
{
5+
"path": "go",
6+
"engine": "postgresql",
7+
"driver": "pgx/v4",
8+
"name": "querytest",
9+
"schema": "query.sql",
10+
"queries": "query.sql"
11+
}
12+
]
13+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CREATE TABLE foo (bar text not null, baz text not null);
2+
INSERT INTO foo (bar, baz) VALUES ($1);
3+
INSERT INTO foo (bar) VALUES ($1, $2);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# package querytest
2+
query.sql:2:1: INSERT has more target columns than expressions
3+
query.sql:3:1: INSERT has more expressions than target columns

0 commit comments

Comments
 (0)