diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-01-24 15:34:27 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-01-24 15:34:27 -0500 |
commit | 90f4b5d84f248d95f3df38e74be92b23fd880e42 (patch) | |
tree | 4f7a3d8aa3c354be36ed697c8de0d4646e8c985c /lib/sqlalchemy/sql | |
parent | 4d2f24e524c99d8255f451476679f5fa93647ad4 (diff) | |
download | sqlalchemy-90f4b5d84f248d95f3df38e74be92b23fd880e42.tar.gz |
fix stringify for CreateSchema
Fixed stringify for a the :class:`.CreateSchema` DDL construct, which would
fail with an ``AttributeError`` when stringified without a dialect.
Fixes: #7664
Change-Id: Ifc1769604bc5219c060f5112f7bdea0f780f1a1c
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r-- | lib/sqlalchemy/sql/ddl.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/ddl.py b/lib/sqlalchemy/sql/ddl.py index 5ea500a32..715e36427 100644 --- a/lib/sqlalchemy/sql/ddl.py +++ b/lib/sqlalchemy/sql/ddl.py @@ -476,6 +476,8 @@ class CreateSchema(_CreateBase): __visit_name__ = "create_schema" + stringify_dialect = "default" # type: ignore + def __init__( self, name, |