Skip to content

Commit c04254f

Browse files
Fix prefix check
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
1 parent a490821 commit c04254f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/results/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ async function runHandler(options?: StatementInfo) {
548548
errorText = e.message || `Error running SQL statement.`;
549549
}
550550

551-
if ([`statement`, `explain`, `onlyexplain`, `cl`, `udtf`].includes(statementDetail.qualifier) && statementDetail.history !== false) {
551+
if ([`statement`, `explain`, `onlyexplain`, `cl`].includes(statementDetail.qualifier) && statementDetail.history !== false) {
552552
chosenView.setError(errorText);
553553
} else {
554554
vscode.window.showErrorMessage(errorText);
@@ -612,7 +612,7 @@ export function parseStatement(editor?: vscode.TextEditor, existingInfo?: Statem
612612
}
613613

614614
if (statementInfo.content) {
615-
[`cl`, `json`, `csv`, `sql`, `explain`, `update`, `rpg`, `bind`, `udtf`].forEach(mode => {
615+
[`cl`, `json`, `csv`, `sql`, `explain`, `update`, `rpg`, `udtf`, `bind`].forEach(mode => {
616616
if (statementInfo.content.trim().toLowerCase().startsWith(mode + `:`)) {
617617
statementInfo.content = statementInfo.content.substring(mode.length + 1).trim();
618618

0 commit comments

Comments
 (0)