diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-03-05 11:34:03 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-03-05 11:35:15 -0500 |
commit | 837d9640049be78473e2afa360cf9bfbfee91a5c (patch) | |
tree | 1309066c3d78a5d1dbccf7b96f219491506b5738 /lib/sqlalchemy/sql/schema.py | |
parent | cfaf830a6f85fd08ec969ad7cb5d4617a46f62d5 (diff) | |
download | sqlalchemy-837d9640049be78473e2afa360cf9bfbfee91a5c.tar.gz |
- repair param inject to work around code examples to some degree
- link to correct text() construct for CheckConstraint
Change-Id: Ic46d1f79670a532f33bd9feb7f568dc3d1d6e38a
Diffstat (limited to 'lib/sqlalchemy/sql/schema.py')
-rw-r--r-- | lib/sqlalchemy/sql/schema.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index 0d3e96d8f..b045e006e 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -2935,12 +2935,12 @@ class CheckConstraint(ColumnCollectionConstraint): r"""Construct a CHECK constraint. :param sqltext: - A string containing the constraint definition, which will be used - verbatim, or a SQL expression construct. If given as a string, - the object is converted to a :class:`.Text` object. If the textual - string includes a colon character, escape this using a backslash:: + A string containing the constraint definition, which will be used + verbatim, or a SQL expression construct. If given as a string, + the object is converted to a :func:`.text` object. If the textual + string includes a colon character, escape this using a backslash:: - CheckConstraint(r"foo ~ E'a(?\:b|c)d") + CheckConstraint(r"foo ~ E'a(?\:b|c)d") :param name: Optional, the in-database name of the constraint. |