()
| 285 | |
| 286 | |
| 287 | def test_aliased_array_index(): |
| 288 | p = sqlparse.parse('col[1] x')[0].tokens |
| 289 | assert len(p) == 1 |
| 290 | assert p[0].get_alias() == 'x' |
| 291 | assert p[0].get_real_name() == 'col' |
| 292 | assert list(p[0].get_array_indices())[0][0].value == '1' |
| 293 | |
| 294 | |
| 295 | def test_array_literal(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…