Skip to content
Snippets Groups Projects
Commit e1627388 authored by Mark Haines's avatar Mark Haines
Browse files

Fix param style to work on both sqlite and postgres

parent 940a1611
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,11 @@ def run_upgrade(cur, database_engine, *args, **kwargs):
}
progress_json = ujson.dumps(progress)
cur.execute(
sql = (
"INSERT into background_updates (update_name, progress_json)"
" VALUES (?, ?)", ("event_search", progress_json)
" VALUES (?, ?)"
)
sql = database_engine.convert_param_style(sql)
cur.execute(sql, ("event_search", progress_json))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment