The sqlparse.format() function with strip comments=True does not correctly handle SQL input that consists…
The sqlparse.format() function with strip comments=True does not correctly handle SQL input that consists…: a task in repo2rlenv-swe-gen (Harbor dataset). When a SQL string contains only single-line comments (and no actual SQL statements), calling sqlparse.format(query, strip comments=True) should…
The task
When a SQL string contains only single-line comments (and no actual SQL statements), calling `sqlparse.format(query, strip_comments=True)` should return an empty string. Instead, it returns the last comment's text.
Part of FineEnvs/repo2rlenv-swe-gen.