fix(editor): honor keyword case when pasting IN values
This commit is contained in:
3 files changed
+17
-3
No files matched your search
@@ -1128,7 +1128,7 @@ async function pasteClipboardAsSqlInCondition(): Promise<boolean> {
|
||||
}
|
||||
}
|
||||
|
||||
const result = buildSqlInConditionFromPasteSource(source);
|
||||
const result = buildSqlInConditionFromPasteSource(source, settingsStore.editorSettings.sqlFormatter.keywordCase);
|
||||
if (!result.ok) {
|
||||
const key = result.reason === "too-large" ? "editor.exPasteTooLarge" : result.reason === "too-many-values" ? "editor.exPasteTooManyValues" : result.reason === "not-list" ? "editor.exPasteNotList" : "editor.exPasteNoValues";
|
||||
toast(t(key, { limit: result.limit ?? 0 }), 5000);
|
||||
|
||||
Reference in new issue
Block a user