Project

General

Profile

« Previous | Next » 

Revision 2322

sql.py: Removed unnecessary calls to check_name()

View differences:

lib/sql.py
602 602
    '''Can also use this for UNIQUE constraints, because a UNIQUE index is
603 603
    automatically created. When you don't know whether something is a UNIQUE
604 604
    constraint or a UNIQUE index, use this function.'''
605
    check_name(table)
606
    check_name(index)
607 605
    module = util.root_module(db.db)
608 606
    if module == 'psycopg2':
609 607
        return list(values(run_query(db, '''\
......
642 640
        ' database')
643 641

  
644 642
def constraint_cols(db, table, constraint):
645
    check_name(table)
646
    check_name(constraint)
647 643
    module = util.root_module(db.db)
648 644
    if module == 'psycopg2':
649 645
        return list(values(run_query(db, '''\

Also available in: Unified diff