Commit 953009d
committed
Add semicolon skipping in trigger/try-catch statement bodies
Fixes parsing of SQL with multiple semicolons before statements in:
- CREATE TRIGGER statement body (after AS)
- TRY block statements
- CATCH block statements
Also enables continuous parsing of all statements in trigger body
until GO/EOF instead of stopping after first statement.
Enables 3 previously failing tests:
- SemicolonsBeforeStatementTests2
- CreateTriggerStatementTests
- BaselinesCommon_CreateTriggerStatementTests1 parent 98179f2 commit 953009d
5 files changed
Lines changed: 25 additions & 7 deletions
File tree
- parser
- testdata
- BaselinesCommon_CreateTriggerStatementTests
- CreateTriggerStatementTests
- SemicolonsBeforeStatementTests2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6817 | 6817 | | |
6818 | 6818 | | |
6819 | 6819 | | |
6820 | | - | |
| 6820 | + | |
| 6821 | + | |
| 6822 | + | |
| 6823 | + | |
| 6824 | + | |
| 6825 | + | |
6821 | 6826 | | |
6822 | 6827 | | |
6823 | 6828 | | |
6824 | 6829 | | |
6825 | 6830 | | |
6826 | 6831 | | |
6827 | 6832 | | |
| 6833 | + | |
| 6834 | + | |
| 6835 | + | |
| 6836 | + | |
| 6837 | + | |
| 6838 | + | |
6828 | 6839 | | |
6829 | 6840 | | |
6830 | 6841 | | |
6831 | 6842 | | |
6832 | 6843 | | |
6833 | 6844 | | |
6834 | 6845 | | |
6835 | | - | |
6836 | | - | |
6837 | | - | |
6838 | 6846 | | |
6839 | 6847 | | |
6840 | 6848 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
1168 | 1173 | | |
1169 | 1174 | | |
1170 | 1175 | | |
| |||
1194 | 1199 | | |
1195 | 1200 | | |
1196 | 1201 | | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
1197 | 1207 | | |
1198 | 1208 | | |
1199 | 1209 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments