Project

General

Profile

« Previous | Next » 

Revision 2059

sql.py: esc_name_by_module(): preserve_case defaults to True

View differences:

lib/sql.py
226 226
    if re.search(r'\W', name) != None: raise NameException('Name "'+name
227 227
        +'" may contain only alphanumeric characters and _')
228 228

  
229
def esc_name_by_module(module, name, preserve_case=False):
229
def esc_name_by_module(module, name, preserve_case=True):
230 230
    if module == 'psycopg2':
231 231
        if preserve_case: quote = '"'
232 232
        # Don't enclose in quotes because this disables case-insensitivity

Also available in: Unified diff