summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/ddl.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-01-09 11:18:02 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2019-01-09 11:18:02 -0500
commit2a840c147e49d833f8a11de3964a0a8588d72508 (patch)
treef0d43df0e39ad07e962a46d1e0831c043a59464b /lib/sqlalchemy/sql/ddl.py
parent86f243a8747c28f87dce5d34fb42501ddfb5d387 (diff)
downloadsqlalchemy-2a840c147e49d833f8a11de3964a0a8588d72508.tar.gz
Render correct DDL for unsetting table comments
Fixed issue where the DDL emitted for :class:`.DropTableComment`, which will be used by an upcoming version of Alembic, was incorrect for the MySQL and Oracle databases. Fixes: #4436 Change-Id: I196de09495a37adface4caa9dcbc29a6d0ad159a
Diffstat (limited to 'lib/sqlalchemy/sql/ddl.py')
-rw-r--r--lib/sqlalchemy/sql/ddl.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/ddl.py b/lib/sqlalchemy/sql/ddl.py
index f247fa782..d58f378f8 100644
--- a/lib/sqlalchemy/sql/ddl.py
+++ b/lib/sqlalchemy/sql/ddl.py
@@ -688,7 +688,11 @@ class SetTableComment(_CreateDropBase):
class DropTableComment(_CreateDropBase):
- """Represent a COMMENT ON TABLE IS NULL statement."""
+ """Represent a COMMENT ON TABLE '' statement.
+
+ Note this varies a lot across database backends.
+
+ """
__visit_name__ = "drop_table_comment"