Revision 2794
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
397 | 397 |
|
398 | 398 |
def run_query(db, query, recover=None, cacheable=False, log_level=2, |
399 | 399 |
log_ignore_excs=None, **kw_args): |
400 |
'''For params, see run_raw_query()'''
|
|
400 |
'''For params, see DbConn.run_query()'''
|
|
401 | 401 |
if recover == None: recover = False |
402 | 402 |
if log_ignore_excs == None: log_ignore_excs = () |
403 | 403 |
log_ignore_excs = tuple(log_ignore_excs) |
... | ... | |
408 | 408 |
|
409 | 409 |
try: |
410 | 410 |
try: |
411 |
def run(): return run_raw_query(db, query, cacheable, log_level,
|
|
411 |
def run(): return db.run_query(query, cacheable, log_level,
|
|
412 | 412 |
debug_msg_ref, **kw_args) |
413 | 413 |
if recover and not db.is_cached(query, []): |
414 | 414 |
return with_savepoint(db, run) |
Also available in: Unified diff
sql.py: run_query(): Call db.run_query() directly instead of via run_raw_query()