diff --git a/docs/en_US/release_notes_3_7.rst b/docs/en_US/release_notes_3_7.rst index 9d12f5d78..e8af0f963 100644 --- a/docs/en_US/release_notes_3_7.rst +++ b/docs/en_US/release_notes_3_7.rst @@ -31,5 +31,6 @@ Bug fixes | `Bug #3797 `_ - Prevent attempts to bulk-drop schema objects. | `Bug #3798 `_ - Ensure the browser toolbar buttons work in languages other than English. | `Bug #3805 `_ - Allow horizontal sizing of the edit grid text pop-out. +| `Bug #3809 `_ - Ensure auto complete should works when first identifier in the FROM clause needs quoting. | `Bug #3821 `_ - Ensure identifiers are properly displayed in the plan viewer. | `Bug #3830 `_ - Make the setup process more robust against aborted executions. \ No newline at end of file diff --git a/web/pgadmin/utils/sqlautocomplete/autocomplete.py b/web/pgadmin/utils/sqlautocomplete/autocomplete.py index f9ee44684..502deb7cf 100644 --- a/web/pgadmin/utils/sqlautocomplete/autocomplete.py +++ b/web/pgadmin/utils/sqlautocomplete/autocomplete.py @@ -437,6 +437,9 @@ class SQLAutoComplete(object): match_end_limit = len(text) def _match(item): + # Text starts with double quote; Remove quoting and + # match on everything that follows the double-quote. + item = self.unescape_name(item.lower()) match_point = item.lower().find(text, 0, match_end_limit) if match_point >= 0: # Use negative infinity to force keywords to sort after all