diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-05 12:40:55 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-05 12:40:55 -0400 |
| commit | b462373b461f652ab20085a612ebd777836ac4da (patch) | |
| tree | 23e6a5b67e04549a1e02c5e153217ff39f500f60 /lib/sqlalchemy/dialects/postgresql/base.py | |
| parent | d34bc7da318978f6d0235e5747e94160959eb276 (diff) | |
| download | sqlalchemy-b462373b461f652ab20085a612ebd777836ac4da.tar.gz | |
- REAL has been added to the core types. Supported
by Postgresql, SQL Server, MySQL, SQLite. Note
that the SQL Server and MySQL versions, which
add extra arguments, are also still available
from those dialects. [ticket:2081]
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index cc2f461f9..7fdd74628 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -99,7 +99,7 @@ except ImportError: from sqlalchemy.types import INTEGER, BIGINT, SMALLINT, VARCHAR, \ CHAR, TEXT, FLOAT, NUMERIC, \ - DATE, BOOLEAN + DATE, BOOLEAN, REAL RESERVED_WORDS = set( ["all", "analyse", "analyze", "and", "any", "array", "as", "asc", @@ -123,9 +123,6 @@ _DECIMAL_TYPES = (1231, 1700) _FLOAT_TYPES = (700, 701, 1021, 1022) _INT_TYPES = (20, 21, 23, 26, 1005, 1007, 1016) -class REAL(sqltypes.Float): - __visit_name__ = "REAL" - class BYTEA(sqltypes.LargeBinary): __visit_name__ = 'BYTEA' @@ -669,9 +666,6 @@ class PGTypeCompiler(compiler.GenericTypeCompiler): def visit_BYTEA(self, type_): return "BYTEA" - def visit_REAL(self, type_): - return "REAL" - def visit_ARRAY(self, type_): return self.process(type_.item_type) + '[]' |
