blob: 402870fcea0bd740d8c22222cee75782b2c1ab6f (
plain)
1
2
3
4
5
6
7
8
9
10
|
"""
Safe quoting method
"""
def safe_quote(obj):
# this is the SQLA 0.9 approach
if hasattr(obj, 'name') and hasattr(obj.name, 'quote'):
return obj.name.quote
else:
return obj.quote
|