From 70d1de6cff816d4627dd6b72223d9796e28aca1e Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 28 Jan 2023 09:37:50 -0500 Subject: Correct #7664 to include DropSchema Corrected the fix for :ticket:`7664`, released in version 2.0.0, to also include :class:`.DropSchema` which was inadvertently missed in this fix, allowing stringification without a dialect. The fixes for both constructs is backported to the 1.4 series as of 1.4.47. Fixes: #7664 Change-Id: I509b7500ee496ac1e444ea2096c2a02520167e6d --- lib/sqlalchemy/sql/ddl.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/ddl.py b/lib/sqlalchemy/sql/ddl.py index 715e36427..826ff687e 100644 --- a/lib/sqlalchemy/sql/ddl.py +++ b/lib/sqlalchemy/sql/ddl.py @@ -497,6 +497,8 @@ class DropSchema(_DropBase): __visit_name__ = "drop_schema" + stringify_dialect = "default" # type: ignore + def __init__( self, name, -- cgit v1.2.1