diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-04-09 10:02:35 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-04-09 10:03:10 -0400 |
| commit | 5e19643ea9db523742d5b9e00384e3d3c2ff9e8c (patch) | |
| tree | 47a9f427f4e7a05e350d4c20418dcaab883cad30 /lib/sqlalchemy/sql | |
| parent | 95c9b32a334c9f8337989a67394a6ccf004341e1 (diff) | |
| download | sqlalchemy-5e19643ea9db523742d5b9e00384e3d3c2ff9e8c.tar.gz | |
update DDL examples removing execute_if
Fixes: #7924
Change-Id: I684bf3720010ffe34dbdd39ec8c7e0c4af94e620
(cherry picked from commit 1eeded1687aef3132b2a1d5995321fb20b2b8dfc)
Diffstat (limited to 'lib/sqlalchemy/sql')
| -rw-r--r-- | lib/sqlalchemy/sql/ddl.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/ddl.py b/lib/sqlalchemy/sql/ddl.py index bf44bfdb1..e608052f3 100644 --- a/lib/sqlalchemy/sql/ddl.py +++ b/lib/sqlalchemy/sql/ddl.py @@ -312,8 +312,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 '%%'. |
