diff options
Diffstat (limited to 'sqlparse/engine')
-rw-r--r-- | sqlparse/engine/grouping.py | 6 | ||||
-rw-r--r-- | sqlparse/engine/statement_splitter.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py index fa87c9f..5078389 100644 --- a/sqlparse/engine/grouping.py +++ b/sqlparse/engine/grouping.py @@ -28,8 +28,8 @@ def _group_matching(tlist, cls): continue if token.is_group and not isinstance(token, cls): - # Check inside previously grouped (ie. parenthesis) if group - # of differnt type is inside (ie, case). though ideally should + # Check inside previously grouped (i.e. parenthesis) if group + # of different type is inside (i.e., case). though ideally should # should check for all open/close tokens at once to avoid recursion _group_matching(token, cls) continue @@ -365,7 +365,7 @@ def _group(tlist, cls, match, extend=True, recurse=True ): - """Groups together tokens that are joined by a middle token. ie. x < y""" + """Groups together tokens that are joined by a middle token. i.e. x < y""" tidx_offset = 0 pidx, prev_ = None, None diff --git a/sqlparse/engine/statement_splitter.py b/sqlparse/engine/statement_splitter.py index 6c5b599..87fe993 100644 --- a/sqlparse/engine/statement_splitter.py +++ b/sqlparse/engine/statement_splitter.py @@ -29,7 +29,7 @@ class StatementSplitter(object): # ANSI # if normal token return # wouldn't parenthesis increase/decrease a level? - # no, inside a paranthesis can't start new statement + # no, inside a parenthesis can't start new statement if ttype not in T.Keyword: return 0 @@ -56,9 +56,9 @@ class StatementSplitter(object): return 1 return 0 - # Should this respect a preceeding BEGIN? + # Should this respect a preceding BEGIN? # In CASE ... WHEN ... END this results in a split level -1. - # Would having multiple CASE WHEN END and a Assigment Operator + # Would having multiple CASE WHEN END and a Assignment Operator # cause the statement to cut off prematurely? if unified == 'END': self._begin_depth = max(0, self._begin_depth - 1) |