mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Updated version of 'sqlparse' as pgcli updated and tested it.
This commit is contained in:
@@ -16,7 +16,7 @@ TableExpression = namedtuple("TableExpression", "name columns start stop")
|
||||
def isolate_query_ctes(full_text, text_before_cursor):
|
||||
"""Simplify a query by converting CTEs into table metadata objects"""
|
||||
|
||||
if not full_text:
|
||||
if not full_text or not full_text.strip():
|
||||
return full_text, text_before_cursor, tuple()
|
||||
|
||||
ctes, remainder = extract_ctes(full_text)
|
||||
|
||||
Reference in New Issue
Block a user