HF RL Explorer

The WHERE clause parser in sqlparse/sql.py does not treat the INTO keyword as a clause terminator. As a…

The WHERE clause parser in sqlparse/sql.py does not treat the INTO keyword as a clause terminator. As a…: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). s = 'select from foo where a = 1 into baz' p = sqlparse.parse(s) 0 print(isinstance(p.tokens 8 , sql.Where)) Should be True…

The task

s = 'select * from foo where a = 1 into baz' p = sqlparse.parse(s)[0] print(isinstance(p.tokens[8], sql.Where)) # Should be True print(p.tokens[9].ttype == T.Keyword) # IndexError: list index out of range print(p.tokens[9].value == 'into') ```

Part of FineEnvs/repo2rlenv-r2e-gym.