OracleDB.truncate: fix SQL query (TABLE word needed)
This commit is contained in:
parent
bfccaa0945
commit
48c1fb085e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue