()
| 241 | |
| 242 | |
| 243 | def test_sqlite_identifiers(): |
| 244 | # Make sure we still parse sqlite style escapes |
| 245 | p = sqlparse.parse('[col1],[col2]')[0].tokens |
| 246 | id_names = [id_.get_name() for id_ in p[0].get_identifiers()] |
| 247 | assert len(p) == 1 |
| 248 | assert isinstance(p[0], sql.IdentifierList) |
| 249 | assert id_names == ['[col1]', '[col2]'] |
| 250 | |
| 251 | p = sqlparse.parse('[col1]+[col2]')[0] |
| 252 | types = [tok.ttype for tok in p.flatten()] |
| 253 | assert types == [T.Name, T.Operator, T.Name] |
| 254 | |
| 255 | |
| 256 | def test_simple_1d_array_index(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…