Parse the part relative to an Operation in the SQL query.
(sql, example, anonymize_values)
| 566 | |
| 567 | |
| 568 | def _parse_operation(sql, example, anonymize_values): |
| 569 | """Parse the part relative to an Operation in the SQL query.""" |
| 570 | successful_copy = True |
| 571 | for item in sql: |
| 572 | if item.ttype == sqlparse.tokens.Text.Whitespace: |
| 573 | continue |
| 574 | if _is_identifier(item): |
| 575 | successful_copy = _parse_identifier(item, example, |
| 576 | anonymize_values) and successful_copy |
| 577 | continue |
| 578 | if _is_operator(item): |
| 579 | _add_simple_step(item, example) |
| 580 | continue |
| 581 | |
| 582 | _debug_sql_item(item) |
| 583 | raise ParseError('Incomplete _parse_operation') |
| 584 | |
| 585 | return successful_copy |
| 586 | |
| 587 | |
| 588 | def _parse_identifier_list(sql, example, anonymize_values): |
no test coverage detected
searching dependent graphs…