Implement a Python function split(sql: str, encoding: str None = None, strip semicolon: bool = False) - list…
Implement a Python function split(sql: str, encoding: str None = None, strip semicolon: bool = False) - list…: a task in repo2rlenv-r2e (Harbor dataset). Behavior requirements: - Split the input SQL string into individual statements, using semicolons as statement delimiters. - Each returned…
The task
Behavior requirements: - Split the input SQL string into individual statements, using semicolons as statement delimiters. - Each returned statement string must be stripped of leading and trailing whitespace. - Semicolons appearing inside SQL string literals (e.g., `'hello; world'`) must NOT be treated as statement…
Part of FineEnvs/repo2rlenv-r2e.