Преглед изворни кода

[editor] Ignore case when identifying tables for the right assist and editor locations

Most DB engines, including Hive and Impala, are not case sensitive for table names and before this change the Hue table detection was.
Johan Åhlén пре 2 година
родитељ
комит
d0fb106f8b

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistEditorContextPanel.js

@@ -448,7 +448,7 @@ class AssistEditorContextPanel {
                       const tableName =
                       const tableName =
                         location.identifierChain[location.identifierChain.length - 1].name;
                         location.identifierChain[location.identifierChain.length - 1].name;
                       const found = tableEntries.some(tableEntry => {
                       const found = tableEntries.some(tableEntry => {
-                        if (tableEntry.name === tableName) {
+                        if (tableEntry.name.toLowerCase() === tableName.toLowerCase()) {
                           const assistTableEntry = new AssistDbEntry(
                           const assistTableEntry = new AssistDbEntry(
                             tableEntry,
                             tableEntry,
                             dbEntry,
                             dbEntry,