Commit c81032a
authored
HCK-14467: Error when applying DDL statements containing comments (#82)
<!--do not remove this marker, its needed to replace info when ticket
title is updated -->
<!--jira-description-action-hidden-marker-start-->
<table>
<td>
<a href="https://hackolade.atlassian.net/browse/HCK-14467"
title="HCK-14467" target="_blank"><img alt="Sub-bug"
src="https://hackolade.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium"
/>HCK-14467</a> [DB2][Apply to instance]: error is thrown on apply ddl
with comments
</td></table>
<br />
<!--jira-description-action-hidden-marker-end-->
## Technical details
Added a method to remove multiline `/**/ `and inline `--` comments when
executing the query.
The root cause: Statements with comments only were being executed as
SQL, which Db2 saw as having no tokens1 parent 1ee9b26 commit c81032a
2 files changed
Lines changed: 6 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
Binary file not shown.
0 commit comments