MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / parse_limit

Function parse_limit

evaluation/ts_old/spider-master/process_sql.py:483–491  ·  view source on GitHub ↗
(toks, start_idx)

Source from the content-addressed store, hash-verified

481
482
483def 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
494def parse_sql(toks, start_idx, tables_with_alias, schema):

Callers 1

parse_sqlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected