From: Diana Clarke Date: Sun, 23 Dec 2012 23:18:29 +0000 (-0500) Subject: fixing typos in the types docs (see #2639) X-Git-Tag: rel_0_7_10~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed1a89b2999ed9efa61418d6c876a1d1563f05d1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fixing typos in the types docs (see #2639) --- diff --git a/doc/build/core/types.rst b/doc/build/core/types.rst index 9ff5425879..e79c7428c1 100644 --- a/doc/build/core/types.rst +++ b/doc/build/core/types.rst @@ -197,13 +197,13 @@ Database-specific types are also available for import from each database's dialect module. See the :ref:`sqlalchemy.dialects_toplevel` reference for the database you're interested in. -For example, MySQL has a ``BIGINTEGER`` type and PostgreSQL has an +For example, MySQL has a ``BIGINT`` type and PostgreSQL has an ``INET`` type. To use these, import them from the module explicitly:: from sqlalchemy.dialects import mysql - table = Table('foo', meta, - Column('id', mysql.BIGINTEGER), + table = Table('foo', metadata, + Column('id', mysql.BIGINT), Column('enumerates', mysql.ENUM('a', 'b', 'c')) ) @@ -211,10 +211,10 @@ Or some PostgreSQL types:: from sqlalchemy.dialects import postgresql - table = Table('foo', meta, + table = Table('foo', metadata, Column('ipaddress', postgresql.INET), - Column('elements', postgresql.ARRAY(str)) - ) + Column('elements', postgresql.ARRAY(String)) + ) Each dialect provides the full set of typenames supported by that backend within its `__all__` collection, so that a simple