##// END OF EJS Templates
db: use a wrapper on pull requests _last_merge_status to ensure this is always INT....
db: use a wrapper on pull requests _last_merge_status to ensure this is always INT. - after upgrade of sqlalchemy this is casted to Long - for backward compat we cast it as Int

File last commit:

r1:854a839a default
r1968:ea1add97 default
Show More
util.py
10 lines | 211 B | text/x-python | PythonLexer
project: added all source files and assets
r1 """
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