mirror of
https://github.com/dbcli/pgcli.git
synced 2024-10-06 18:27:29 +03:00
Hardcode case where last token is 'AS'
Fixes failing tests. In earlier versions of sqlparse this dangling AS was grouped with the previous identifier so this case was handled implicitly
This commit is contained in:
parent
3f2e686d4f
commit
9c32912b32
@ -358,7 +358,9 @@ def suggest_based_on_last_token(token, stmt):
|
||||
return (Column(table_refs=tables, local_tables=stmt.local_tables),
|
||||
Function(schema=None),
|
||||
Keyword(),)
|
||||
|
||||
elif token_v == 'as':
|
||||
# Don't suggest anything for aliases
|
||||
return ()
|
||||
elif (token_v.endswith('join') and token.is_keyword) or (token_v in
|
||||
('copy', 'from', 'update', 'into', 'describe', 'truncate')):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user