Skip to content
Snippets Groups Projects
Commit 72da8bbf authored by Marcin's avatar Marcin
Browse files

haf#153: use procedures for attching/detaching a haf context

parent 4bb25423
No related branches found
No related tags found
2 merge requests!827Merge develop changes to master,!606haf#153: use procedures for attaching/detaching a haf context
Subproject commit e03debc5e5ffe69fe58c7348872527f5abb8911f
Subproject commit 84bb1ab9607f58481c764781051791006349b4e0
......@@ -23,7 +23,7 @@ def context_detach(db: Db) -> None:
return
log.info("Trying to detach app context...")
db.query_no_return(f"SELECT hive.app_context_detach('{SCHEMA_NAME}')")
db.query_no_return(f"CALL hive.appproc_context_detach('{SCHEMA_NAME}')")
log.info("App context detaching done.")
......@@ -35,5 +35,5 @@ def context_attach(db: Db, block_number: int) -> None:
return
log.info(f"Trying to attach app context with block number: {block_number}")
db.query_no_return(f"SELECT hive.app_context_attach('{SCHEMA_NAME}', {block_number})")
db.query_no_return(f"CALL hive.appproc_context_attach('{SCHEMA_NAME}', {block_number})")
log.info("App context attaching done.")
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