Revision 2059
Added by Aaron Marcuse-Kubitza over 12 years ago
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
sql.py: esc_name_by_module(): preserve_case defaults to True