(toks, start_idx)
| 481 | |
| 482 | |
| 483 | def parse_limit(toks, start_idx): |
| 484 | idx = start_idx |
| 485 | len_ = len(toks) |
| 486 | |
| 487 | if idx < len_ and toks[idx] == 'limit': |
| 488 | idx += 2 |
| 489 | return idx, int(toks[idx-1]) |
| 490 | |
| 491 | return idx, None |
| 492 | |
| 493 | |
| 494 | def parse_sql(toks, start_idx, tables_with_alias, schema): |