Project

General

Profile

« Previous | Next » 

Revision 2573

sql.py: esc_name_by_module(): Remove unused param ignore_case

View differences:

lib/sql.py
107 107

  
108 108
##### Input validation
109 109

  
110
def esc_name_by_module(module, name, ignore_case=False):
111
    if module == 'psycopg2' or module == None:
112
        if ignore_case and is_safe_name(name):
113
            # Don't enclose in quotes because this disables case-insensitivity
114
            return name
115
        else: quote = '"'
110
def esc_name_by_module(module, name):
111
    if module == 'psycopg2' or module == None: quote = '"'
116 112
    elif module == 'MySQLdb': quote = '`'
117 113
    else: raise NotImplementedError("Can't escape name for "+module+' database')
118 114
    return sql_gen.esc_name(name, quote)

Also available in: Unified diff