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

Function replace_cur_year

evaluation/test-suite-sql-eval/exec_subprocess.py:10–11  ·  view source on GitHub ↗
(query: str)

Source from the content-addressed store, hash-verified

8
9
10def replace_cur_year(query: str) -> str:
11 return re.sub('YEAR\s*\(\s*CURDATE\s*\(\s*\)\s*\)\s*', '2020', query, flags=re.IGNORECASE)
12
13
14# get the database cursor for a sqlite database path

Callers 1

exec_on_db_Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected