(parsed)
| 14 | # This code is borrowed from sqlparse example script. |
| 15 | # <url> |
| 16 | def is_subselect(parsed): |
| 17 | if not parsed.is_group: |
| 18 | return False |
| 19 | for item in parsed.tokens: |
| 20 | if item.ttype is DML and item.value.upper() in ('SELECT', 'INSERT', |
| 21 | 'UPDATE', 'CREATE', 'DELETE'): |
| 22 | return True |
| 23 | return False |
| 24 | |
| 25 | |
| 26 | def _identifier_is_function(identifier): |