diff options
Diffstat (limited to 'migrate/changeset/util.py')
-rw-r--r-- | migrate/changeset/util.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/migrate/changeset/util.py b/migrate/changeset/util.py new file mode 100644 index 0000000..402870f --- /dev/null +++ b/migrate/changeset/util.py @@ -0,0 +1,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 |