From 2a840c147e49d833f8a11de3964a0a8588d72508 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 9 Jan 2019 11:18:02 -0500 Subject: 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 --- lib/sqlalchemy/sql/ddl.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql') 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" -- cgit v1.2.1