Skip to content

Commit 5a0a2bf

Browse files
committed
fix ci
1 parent 9f10c01 commit 5a0a2bf

File tree

3 files changed

+83
-4
lines changed

3 files changed

+83
-4
lines changed

sample/definitions/function/syntax_error_trigger_column_does_not_exist.pgsql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
DROP TABLE IF EXISTS users_1 CASCADE;
2+
DROP TABLE IF EXISTS users_2 CASCADE;
3+
DROP TABLE IF EXISTS users_3 CASCADE;
4+
15
CREATE TABLE users_1 (
26
id integer not null PRIMARY KEY,
37
updated_at timestamp with time zone not null DEFAULT now()

sample/definitions/function/syntax_error_trigger_column_does_not_exist.pgsql.json

Lines changed: 77 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,79 @@
11
[
2+
{
3+
"RawStmt": {
4+
"stmt": {
5+
"DropStmt": {
6+
"objects": [
7+
{
8+
"List": {
9+
"items": [
10+
{
11+
"String": {
12+
"str": "users_1"
13+
}
14+
}
15+
]
16+
}
17+
}
18+
],
19+
"removeType": "OBJECT_TABLE",
20+
"behavior": "DROP_CASCADE",
21+
"missing_ok": true
22+
}
23+
},
24+
"stmt_len": 36
25+
}
26+
},
27+
{
28+
"RawStmt": {
29+
"stmt": {
30+
"DropStmt": {
31+
"objects": [
32+
{
33+
"List": {
34+
"items": [
35+
{
36+
"String": {
37+
"str": "users_2"
38+
}
39+
}
40+
]
41+
}
42+
}
43+
],
44+
"removeType": "OBJECT_TABLE",
45+
"behavior": "DROP_CASCADE",
46+
"missing_ok": true
47+
}
48+
},
49+
"stmt_len": 37
50+
}
51+
},
52+
{
53+
"RawStmt": {
54+
"stmt": {
55+
"DropStmt": {
56+
"objects": [
57+
{
58+
"List": {
59+
"items": [
60+
{
61+
"String": {
62+
"str": "users_3"
63+
}
64+
}
65+
]
66+
}
67+
}
68+
],
69+
"removeType": "OBJECT_TABLE",
70+
"behavior": "DROP_CASCADE",
71+
"missing_ok": true
72+
}
73+
},
74+
"stmt_len": 37
75+
}
76+
},
277
{
378
"RawStmt": {
479
"stmt": {
@@ -90,7 +165,7 @@
90165
"oncommit": "ONCOMMIT_NOOP"
91166
}
92167
},
93-
"stmt_len": 120
168+
"stmt_len": 122
94169
}
95170
},
96171
{
@@ -272,7 +347,7 @@
272347
"events": 16
273348
}
274349
},
275-
"stmt_len": 148
350+
"stmt_len": 190
276351
}
277352
},
278353
{

server/src/services/validation.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ describe("Validate Tests", () => {
7777
{
7878
severity: DiagnosticSeverity.Error,
7979
message: 'record "new" has no field "updated_at"',
80-
range: Range.create(20, 0, 23, 47),
80+
range: Range.create(24, 0, 27, 47),
8181
}, {
8282
severity: DiagnosticSeverity.Error,
8383
message: 'record "new" has no field "updated_at"',
84-
range: Range.create(28, 0, 31, 47),
84+
range: Range.create(32, 0, 35, 47),
8585
},
8686
])
8787
})

0 commit comments

Comments
 (0)