Revision 2075
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/sql.py | ||
---|---|---|
398 | 398 |
if into == None: # return RETURNING values |
399 | 399 |
return run_query(db, query, params, recover, cacheable) |
400 | 400 |
else: # place RETURNING values in temp table |
401 |
run_query(db, 'DROP TABLE IF EXISTS '+into+' CASCADE', recover) |
|
401 |
run_query(db, 'DROP TABLE IF EXISTS '+into+' CASCADE', recover, |
|
402 |
cacheable) |
|
402 | 403 |
return run_query(db, 'CREATE TEMP TABLE '+into+' AS '+query, params, |
403 | 404 |
recover, cacheable) # CREATE TABLE sets rowcount to # inserts |
404 | 405 |
|
Also available in: Unified diff
sql.py: insert_select(): into != None: Fixed bug where cacheable was not passed through to DROP TABLE's run_query(), even though it was passed through to CREATE TABLE AS's run_query()