Skip to content
Snippets Groups Projects
Commit 65fbd6e4 authored by Pierre-Gilles Levallois's avatar Pierre-Gilles Levallois
Browse files

fix bug on init-Grid, set DBSchema explicitly

parent cdafb60e
No related branches found
No related tags found
No related merge requests found
Pipeline #103943 passed
......@@ -133,6 +133,9 @@ if [ $action == "init-grid" ] || [ $action == "all" ]; then
wait -n
fi;
done
# no more jobs to be started but wait for pending jobs
# (all need to be finished)
wait
fi
if [ $action == "init-datas" ] || [ $action == "all" ]; then
......@@ -159,7 +162,9 @@ if [ $action == "compute-factors" ] || [ $action == "all" ]; then
fi;
done
# no more jobs to be started but wait for pending jobs
# (all need to be finished)
wait
fi
if [ $action == "compute-indices" ] || [ $action == "all" ]; then
......
......@@ -359,7 +359,7 @@ def insertGDFintoDB(DB_params, DB_schema, gdf, tablename, columnsListToDB):
# Insert with copy_from
try:
cur.copy_from(buffer, tablename, sep=";", columns=columnsListToDB)
cur.copy_from(buffer, DB_schema + "." + tablename, sep=";", columns=columnsListToDB)
conn.commit()
except (Exception, psycopg2.DatabaseError) as error:
debugLog(style.RED, "Error while inserting : {}".format(error), logging.ERROR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment