Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FlyingFeather/DEA-SQL
/ replace_cur_year
Function
replace_cur_year
evaluation/test-suite-sql-eval/exec_eval.py:125–128 ·
view source on GitHub ↗
(query: str)
Source
from the content-addressed store, hash-verified
123
124
125
def
replace_cur_year(query: str) -> str:
126
return
re.sub(
127
"YEAR\s*\(\s*CURDATE\s*\(\s*\)\s*\)\s*"
,
"2020"
, query, flags=re.IGNORECASE
128
)
129
130
131
# 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