summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-07-16 18:24:20 +0000
committerJason Kirtland <jek@discorporate.us>2008-07-16 18:24:20 +0000
commita00b42b289e81749abe1037d96147fe2320030ce (patch)
tree70fd954576bfbefb292d81f3aa912d912975eb2d /lib/sqlalchemy/util.py
parentb155b60280828b23d6b7f165f7d1c0b9e51b4250 (diff)
downloadsqlalchemy-a00b42b289e81749abe1037d96147fe2320030ce.tar.gz
- mysql.MSEnum value literals now automatically quoted when used in a CREATE.
The change is backward compatible. Slight expansion of patch from catlee. Thanks! [ticket:1110]
Diffstat (limited to 'lib/sqlalchemy/util.py')
-rw-r--r--lib/sqlalchemy/util.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py
index d0027ebc4..a9e7d2238 100644
--- a/lib/sqlalchemy/util.py
+++ b/lib/sqlalchemy/util.py
@@ -1405,6 +1405,9 @@ def warn(msg):
def warn_deprecated(msg):
warnings.warn(msg, exc.SADeprecationWarning, stacklevel=3)
+def warn_pending_deprecation(msg):
+ warnings.warn(msg, exc.SAPendingDeprecationWarning, stacklevel=3)
+
def deprecated(message=None, add_deprecation_to_docstring=True):
"""Decorates a function and issues a deprecation warning on use.