mirror of
https://github.com/dbcli/pgcli.git
synced 2024-10-06 10:17:15 +03:00
Remove unnecessary token count check
This commit is contained in:
parent
2c4f4e689d
commit
d618c006bd
@ -271,7 +271,7 @@ def parse_partial_identifier(word):
|
||||
n_tok = len(p.tokens)
|
||||
if n_tok == 1 and isinstance(p.tokens[0], Identifier):
|
||||
return p.tokens[0]
|
||||
elif (n_tok in (2, 3)) and p.token_next_match(0, Error, '"'):
|
||||
elif p.token_next_match(0, Error, '"'):
|
||||
# An unmatched double quote, e.g. '"foo', 'foo."', or 'foo."bar'
|
||||
# Close the double quote, then reparse
|
||||
return parse_partial_identifier(word + '"')
|
||||
|
Loading…
Reference in New Issue
Block a user