From b462373b461f652ab20085a612ebd777836ac4da Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 5 Apr 2011 12:40:55 -0400 Subject: - 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] --- lib/sqlalchemy/sql/compiler.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/sqlalchemy/sql/compiler.py') 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_) -- cgit v1.2.1