Skip to content

Commit e8399f2

Browse files
tests: added missing_semicolon pgx test
1 parent 4a960f1 commit e8399f2

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CREATE TABLE foo (email text not null);
2+
3+
-- name: FirstQuery :many
4+
SELECT * FROM foo;
5+
6+
-- name: SecondQuery :many
7+
SELECT * FROM foo WHERE email = $1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# package querytest
2+
query.sql:7:1: missing semicolon at end of file

0 commit comments

Comments
 (0)