Project

General

Profile

« Previous | Next » 

Revision 2972

sql.py: empty_temp(): In debug_temp mode, leave temp tables there for debugging

View differences:

lib/sql.py
1085 1085
    return run_query(db, 'TRUNCATE '+table.to_str(db)+' CASCADE', **kw_args)
1086 1086

  
1087 1087
def empty_temp(db, tables):
1088
    if db.debug_temp: return # leave temp tables there for debugging
1088 1089
    tables = lists.mk_seq(tables)
1089 1090
    for table in tables: truncate(db, table, log_level=3)
1090 1091

  

Also available in: Unified diff