Project

General

Profile

« Previous | Next » 

Revision 2803

sql.py: Removed unused mogrify()

View differences:

lib/sql.py
376 376

  
377 377
connect = DbConn
378 378

  
379
##### Querying
380

  
381
def mogrify(db, query, params):
382
    module = util.root_module(db.db)
383
    if module == 'psycopg2': return db.db.cursor().mogrify(query, params)
384
    else: raise NotImplementedError("Can't mogrify query for "+module+
385
        ' database')
386

  
387 379
##### Recoverable querying
388 380

  
389 381
def with_savepoint(db, func): return db.with_savepoint(func)

Also available in: Unified diff