diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-20 16:20:08 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-20 16:21:31 -0500 |
commit | e85e8c5f02428394f1ea0bf59f3abc046e691b4f (patch) | |
tree | d8649591ebb1d470f714e4c2e5e9f4ecfa246e5e | |
parent | 4a0cbc7be95a818dcb11cba1dc45602cc83cd5c7 (diff) | |
download | sqlalchemy-e85e8c5f02428394f1ea0bf59f3abc046e691b4f.tar.gz |
- generalize the verbiage on LargeBinary so that it doesn't
create confusion for inherited classes such as BYTEA, fixes
(cherry picked from commit 47d8858c54401cdf10285b7935049faf87432f55)
-rw-r--r-- | doc/build/dialects/postgresql.rst | 2 | ||||
-rw-r--r-- | lib/sqlalchemy/sql/sqltypes.py | 15 |
2 files changed, 5 insertions, 12 deletions
diff --git a/doc/build/dialects/postgresql.rst b/doc/build/dialects/postgresql.rst index e1a96493e..7ebf28c3e 100644 --- a/doc/build/dialects/postgresql.rst +++ b/doc/build/dialects/postgresql.rst @@ -41,9 +41,7 @@ construction arguments, are as follows: .. autoclass:: BYTEA :members: __init__ - .. autoclass:: CIDR - :members: __init__ .. autoclass:: DOUBLE_PRECISION diff --git a/lib/sqlalchemy/sql/sqltypes.py b/lib/sqlalchemy/sql/sqltypes.py index fbf3f613e..4c4947d09 100644 --- a/lib/sqlalchemy/sql/sqltypes.py +++ b/lib/sqlalchemy/sql/sqltypes.py @@ -873,9 +873,9 @@ class LargeBinary(_Binary): """A type for large binary byte data. - The Binary type generates BLOB or BYTEA when tables are created, - and also converts incoming values using the ``Binary`` callable - provided by each DB-API. + The :class:`.LargeBinary` type corresponds to a large and/or unlengthed + binary type for the target platform, such as BLOB on MySQL and BYTEA for + Postgresql. It also handles the necessary conversions for the DBAPI. """ @@ -886,13 +886,8 @@ class LargeBinary(_Binary): Construct a LargeBinary type. :param length: optional, a length for the column for use in - DDL statements, for those BLOB types that accept a length - (i.e. MySQL). It does *not* produce a small BINARY/VARBINARY - type - use the BINARY/VARBINARY types specifically for those. - May be safely omitted if no ``CREATE - TABLE`` will be issued. Certain databases may require a - *length* for use in DDL, and will raise an exception when - the ``CREATE TABLE`` DDL is issued. + DDL statements, for those binary types that accept a length, + such as the MySQL BLOB type. """ _Binary.__init__(self, length=length) |