1
0
mirror of https://github.com/dbcli/pgcli synced 2024-05-31 01:17:54 +00:00

Merge pull request #1129 from timgates42/bugfix/typo_throws

Fix simple typo: thows -> throws
This commit is contained in:
Amjith Ramanujam 2019-12-08 19:17:14 -08:00 committed by GitHub
commit 31d0ea9d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ def find_prev_keyword(sql, n_skip=0):
): ):
# Find the location of token t in the original parsed statement # Find the location of token t in the original parsed statement
# We can't use parsed.token_index(t) because t may be a child token # We can't use parsed.token_index(t) because t may be a child token
# inside a TokenList, in which case token_index thows an error # inside a TokenList, in which case token_index throws an error
# Minimal example: # Minimal example:
# p = sqlparse.parse('select * from foo where bar') # p = sqlparse.parse('select * from foo where bar')
# t = list(p.flatten())[-3] # The "Where" token # t = list(p.flatten())[-3] # The "Where" token