Revision 869
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/sql.py | ||
---|---|---|
152 | 152 |
|
153 | 153 |
def truncate(db, table): |
154 | 154 |
check_name(table) |
155 |
return run_query(db, 'TRUNCATE '+table+' CASCADE') |
|
155 |
return run_raw_query(db, 'TRUNCATE '+table+' CASCADE')
|
|
156 | 156 |
|
157 | 157 |
##### Database structure queries |
158 | 158 |
|
Also available in: Unified diff
sql.py: truncate(): Use run_raw_query() instead of run_query() because truncate() does not use the recover functionality of run_query(). Also, in the profiling output, this separates the "normal" SQL statements (which use run_query()) from the "core" SQL statements (which use run_raw_query()).