Skip to content
Snippets Groups Projects
Commit faeb88d9 authored by Pierre-Gilles LEVALLOIS's avatar Pierre-Gilles LEVALLOIS
Browse files

Cascading truncate

parent 09fd4e17
No related branches found
No related tags found
1 merge request!6Fully functional version that calculate layer with all stages
Pipeline #59905 passed
...@@ -334,7 +334,7 @@ def truncateDataInDB(DB_params, DB_schema, tableName): ...@@ -334,7 +334,7 @@ def truncateDataInDB(DB_params, DB_schema, tableName):
conn, cur = connectDB(DB_params) conn, cur = connectDB(DB_params)
# Build request # Build request
truncateQuery = "TRUNCATE TABLE " + DB_schema + "." + tableName truncateQuery = "TRUNCATE TABLE " + DB_schema + "." + tableName + " CASCADE"
# Execute query # Execute query
cur.execute(truncateQuery) cur.execute(truncateQuery)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment