Fix auto-complete. Fixes #3374

This commit is contained in:
Akshay Joshi 2018-06-13 15:53:21 +01:00 committed by Dave Page
parent d1ecba56b8
commit 88a2309a26
2 changed files with 3 additions and 2 deletions

View File

@ -35,5 +35,6 @@ Bug fixes
| `Bug #3333 <https://redmine.postgresql.org/issues/3333>`_ - Ensure the runtime core application is setup before trying to access any settings
| `Bug #3342 <https://redmine.postgresql.org/issues/3342>`_ - Set SESSION_COOKIE_SAMESITE='Lax' per Flask recommendation to prevents sending cookies with CSRF-prone requests from external sites, such as submitting a form
| `Bug #3353 <https://redmine.postgresql.org/issues/3353>`_ - Handle errors properly if they occur when renaming a database
| `Bug #3374 <https://redmine.postgresql.org/issues/3374>`_ - Fix autocomplete
| `Bug #3392 <https://redmine.postgresql.org/issues/3392>`_ - Fix IPv6 support in the container build.
| `Bug #3409 <https://redmine.postgresql.org/issues/3409>`_ - Avoid an exception on GreenPlum when retrieving RE-SQL on a table.
| `Bug #3409 <https://redmine.postgresql.org/issues/3409>`_ - Avoid an exception on GreenPlum when retrieving RE-SQL on a table

View File

@ -73,7 +73,7 @@ TableReference = namedtuple(
# This code is borrowed from sqlparse example script.
# <url>
def is_subselect(parsed):
if not parsed.is_group():
if not parsed.is_group:
return False
sql_type = ('SELECT', 'INSERT', 'UPDATE', 'CREATE', 'DELETE')
for item in parsed.tokens: