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