summaryrefslogtreecommitdiffstats
path: root/pgcli/packages
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-03-02 12:22:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-03-02 12:22:04 +0000
commite8e0960f454f47142162c94a083fa9efd19d4fd9 (patch)
treef822a83308754cbebb7ea7037fa51b26268c9f98 /pgcli/packages
parentReleasing debian version 3.3.1-1. (diff)
downloadpgcli-e8e0960f454f47142162c94a083fa9efd19d4fd9.tar.xz
pgcli-e8e0960f454f47142162c94a083fa9efd19d4fd9.zip
Merging upstream version 3.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pgcli/packages')
-rw-r--r--pgcli/packages/parseutils/tables.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/pgcli/packages/parseutils/tables.py b/pgcli/packages/parseutils/tables.py
index aaa676c..f2e1e42 100644
--- a/pgcli/packages/parseutils/tables.py
+++ b/pgcli/packages/parseutils/tables.py
@@ -63,17 +63,13 @@ def extract_from_part(parsed, stop_at_punctuation=True):
yield item
elif item.ttype is Keyword or item.ttype is Keyword.DML:
item_val = item.value.upper()
- if (
- item_val
- in (
- "COPY",
- "FROM",
- "INTO",
- "UPDATE",
- "TABLE",
- )
- or item_val.endswith("JOIN")
- ):
+ if item_val in (
+ "COPY",
+ "FROM",
+ "INTO",
+ "UPDATE",
+ "TABLE",
+ ) or item_val.endswith("JOIN"):
tbl_prefix_seen = True
# 'SELECT a, FROM abc' will detect FROM as part of the column list.
# So this check here is necessary.