fix(editor): skip INSERT hints duplicating projection aliases
This commit is contained in:
6 files changed
+113
-16
No files matched your search
@@ -99,7 +99,7 @@ function shiftClause(clause: InsertValuesClause, offset: number): InsertValuesCl
|
||||
return {
|
||||
...clause,
|
||||
span: { start: clause.span.start + offset, end: clause.span.end + offset },
|
||||
rows: clause.rows.map((row) => row.map((from) => from + offset)),
|
||||
rows: clause.rows.map((row) => row.map((source) => ({ ...source, from: source.from + offset }))),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user