fix(editor): honor keyword case when pasting IN values

This commit is contained in:
zipg authored and GitHub committed 2026-08-02 10:08:22 +08:00
1 parent 9b05158c9a
commit fdba3301b4
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);