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:02:35 -0400 |
| commit | 1eeded1687aef3132b2a1d5995321fb20b2b8dfc (patch) | |
| tree | be49aea1719d1d0db2cedf89e16df68f1513ea81 /lib/sqlalchemy/sql/ddl.py | |
| parent | 952383f9ee04649282519b3287241c1336502fe5 (diff) | |
| download | sqlalchemy-1eeded1687aef3132b2a1d5995321fb20b2b8dfc.tar.gz | |
update DDL examples removing execute_if
Fixes: #7924
Change-Id: I684bf3720010ffe34dbdd39ec8c7e0c4af94e620
Diffstat (limited to 'lib/sqlalchemy/sql/ddl.py')
| -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 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 '%%'. |
