From 48c1fb085e7b6b6a1dea296ad7e3f082bb320cb5 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 18 Nov 2021 12:34:30 +0100 Subject: [PATCH] OracleDB.truncate: fix SQL query (TABLE word needed) --- mylib/oracle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mylib/oracle.py b/mylib/oracle.py index 1c76910..e74b835 100644 --- a/mylib/oracle.py +++ b/mylib/oracle.py @@ -320,7 +320,7 @@ class OracleDB: def truncate(self, table, just_try=False): """ Run TRUNCATE SQL query """ - sql = 'TRUNCATE {0}'.format(self._quote_table_name(table)) + sql = 'TRUNCATE TABLE {0}'.format(self._quote_table_name(table)) if just_try: log.debug("Just-try mode: execute TRUNCATE query: %s", sql)