From 1eeded1687aef3132b2a1d5995321fb20b2b8dfc Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 9 Apr 2022 10:02:35 -0400 Subject: update DDL examples removing execute_if Fixes: #7924 Change-Id: I684bf3720010ffe34dbdd39ec8c7e0c4af94e620 --- lib/sqlalchemy/sql/ddl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/ddl.py b/lib/sqlalchemy/sql/ddl.py index 4d57ad869..131ae9ef1 100644 --- a/lib/sqlalchemy/sql/ddl.py +++ b/lib/sqlalchemy/sql/ddl.py @@ -345,8 +345,10 @@ class DDL(DDLElement): :param statement: A string or unicode string to be executed. Statements will be - processed with Python's string formatting operator. See the - ``context`` argument and the ``execute_at`` method. + processed with Python's string formatting operator using + a fixed set of string substitutions, as well as additional + substitutions provided by the optional :paramref:`.DDL.context` + parameter. A literal '%' in a statement must be escaped as '%%'. -- cgit v1.2.1