Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions web-console/lib/keywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const SQL_KEYWORDS = [
'TIME',
'INSERT INTO',
'REPLACE INTO',
'MERGE INTO',
'OVERWRITE',
'RETURNING',
'OVER',
Expand All @@ -73,6 +74,8 @@ export const SQL_KEYWORDS = [
'EXTEND',
'PIVOT',
'UNPIVOT',
'MATCHED',
'UPDATE SET',
];

export const SQL_EXPRESSION_PARTS = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export class WorkbenchQuery {

if (this.isJsonLike()) return false;

return /(?:INSERT|REPLACE)\s+INTO/i.test(queryString);
return /(?:INSERT|REPLACE|MERGE)\s+INTO/i.test(queryString);
}

public toggleUnlimited(): WorkbenchQuery {
Expand Down