summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Stephens <owen@owenstephens.co.uk>2019-10-16 23:33:43 +0100
committerOwen Stephens <owen@owenstephens.co.uk>2019-10-16 23:33:43 +0100
commite9b18f9e84a5b26eb4a42633f6cee98597d70ad4 (patch)
treed94fb9d76a9ca2cf21cd99bfcb79297e8be8bba5
parenta700f2b788fa8050abb23598db8282050fd18e24 (diff)
fixup! fixup! Take account of table aliases when completing function args (#1048)
-rw-r--r--pgcli/packages/sqlcompletion.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pgcli/packages/sqlcompletion.py b/pgcli/packages/sqlcompletion.py
index 781a24ab..2828b175 100644
--- a/pgcli/packages/sqlcompletion.py
+++ b/pgcli/packages/sqlcompletion.py
@@ -532,8 +532,8 @@ def suggest_based_on_last_token(token, stmt):
def _suggest_expression(token_v, stmt):
"""
- Return suggestions for an expression, taking account of the partially-typed
- identifiers parent, which may be a table alias or schema name.
+ Return suggestions for an expression, taking account of any partially-typed
+ identifier's parent, which may be a table alias or schema name.
"""
parent = stmt.identifier.get_parent_name() if stmt.identifier else []
tables = stmt.get_tables()