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/sql/compiler.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/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 76303c10c..7c409e0e6 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -1479,6 +1479,9 @@ class GenericTypeCompiler(engine.TypeCompiler): def visit_FLOAT(self, type_): return "FLOAT" + def visit_REAL(self, type_): + return "REAL" + def visit_NUMERIC(self, type_): if type_.precision is None: return "NUMERIC" @@ -1565,6 +1568,9 @@ class GenericTypeCompiler(engine.TypeCompiler): def visit_integer(self, type_): return self.visit_INTEGER(type_) + def visit_real(self, type_): + return self.visit_REAL(type_) + def visit_float(self, type_): return self.visit_FLOAT(type_) |