summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2023-01-28 09:37:50 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2023-01-28 09:39:24 -0500
commit70d1de6cff816d4627dd6b72223d9796e28aca1e (patch)
treea08ab476f0a6208b4d1045f504d20d28b046a67d /lib/sqlalchemy/sql
parentecdaf44711f1feb002ad98b6e917cc575a1bd801 (diff)
downloadsqlalchemy-70d1de6cff816d4627dd6b72223d9796e28aca1e.tar.gz
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
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/ddl.py2
1 files changed, 2 insertions, 0 deletions
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,