Project

General

Profile

« Previous | Next » 

Revision 2570

sql.py: Removed no longer needed check_name()

View differences:

lib/sql.py
107 107

  
108 108
##### Input validation
109 109

  
110
def check_name(name):
111
    if re.search(r'\W', name) != None: raise NameException('Name "'+name
112
        +'" may contain only alphanumeric characters and _')
113

  
114 110
def esc_name_by_module(module, name, ignore_case=False):
115 111
    if module == 'psycopg2' or module == None:
116 112
        if ignore_case and is_safe_name(name):

Also available in: Unified diff