You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For each element of the array, it should create two INSERT statements.
31
-
The first should insert the columns PATH, START_LINE, END_LINE, START_COLUMN, END_COLUMN
32
-
into a tabled named RANGES using the properties from the map.
33
-
The second should insert the columns MESSAGE, TYPE, RANGE, VIOLATION_ID into a table named VIOLATIONS
34
-
using the properties from the map. The RANGE column should be the ID of the previous row in the RANGES table.
31
+
32
+
1. The first should insert the columns ID,PATH, START_LINE, END_LINE, START_COLUMN, END_COLUMN
33
+
into a tabled named RANGES using the properties from the map. ID should be a random string. No uuid module here.
34
+
2. The second should insert the columns MESSAGE, TYPE, RANGE_ID, VIOLATION_ID into a table named VIOLATIONS using the properties from the map. The RANGE_ID will be the same random string from before.
35
+
36
+
If the violation doesn't have an `endLine` or `endColumn` you should simply re-use the start position.
37
+
35
38
If any strings contain single quotes, they should be escaped.
36
39
37
40
Line and column represent START_LINE and START_COLUMN
0 commit comments