Revision 2842
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
27 | 27 |
|
28 | 28 |
return strings.add_suffix(str_, suffix, identifier_max_len) |
29 | 29 |
|
30 |
def truncate(str_): return add_suffix(str_, '') |
|
31 |
|
|
30 | 32 |
def is_safe_name(name): |
31 | 33 |
'''A name is safe *and unambiguous* if it: |
32 | 34 |
* contains only *lowercase* word (\w) characters |
Also available in: Unified diff
sql_gen.py: Added truncate()