]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixes: #5465; incorporating feedback
authorzeeeeeb <5767468+zeeeeeb@users.noreply.github.com>
Thu, 10 Feb 2022 04:33:51 +0000 (20:33 -0800)
committerzeeeeeb <5767468+zeeeeeb@users.noreply.github.com>
Thu, 10 Feb 2022 04:33:51 +0000 (20:33 -0800)
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/mssql/test_types.py

index 6b01960d459d355ecb336c10212fd4bfde0db141..30976e2ce7f5fa7167ab54d6a06fed741f86c1a4 100644 (file)
@@ -1488,8 +1488,6 @@ class MSTypeCompiler(compiler.GenericTypeCompiler):
         else:
             return "FLOAT(%(precision)s)" % {"precision": precision}
 
-    def visit_DOUBLE(self, type_, **kw):
-        return "FLOAT"
 
     def visit_TINYINT(self, type_, **kw):
         return "TINYINT"
index c10f83cfac490325f9a97d95415b41e463edcf54..496e573cc86ac0f53dfd0a1f6096688fdc076527 100644 (file)
@@ -769,9 +769,6 @@ class OracleTypeCompiler(compiler.GenericTypeCompiler):
         else:
             return self.visit_VARCHAR2(type_, **kw)
 
-    def visit_DOUBLE(self, type_, **kw):
-        return self.visit_DOUBLE_PRECISION(type_, **kw)
-
     def visit_INTERVAL(self, type_, **kw):
         return "INTERVAL DAY%s TO SECOND%s" % (
             type_.day_precision is not None
index 2d44932c0fdcca1772e7d06eba1167de64b66f1c..3a6788b65c255419e9b3ca78f38fbc8f1ff4f925 100644 (file)
@@ -2899,11 +2899,8 @@ class PGTypeCompiler(compiler.GenericTypeCompiler):
     def visit_DOUBLE_PRECISION(self, type_, **kw):
         return "DOUBLE PRECISION"
 
-    def visit_DOUBLE(self, type_, **kw):
-        return "DOUBLE PRECISION"
-
     def visit_double(self, type_, **kw):
-        return "DOUBLE PRECISION"
+        return self.visit_DOUBLE_PRECISION(type, **kw)
 
     def visit_BIGINT(self, type_, **kw):
         return "BIGINT"
index ba74a7970aa5f3bbde952154cf3eb2fe23833c8f..2ef8b76daeeb3990815132e7f254e28570abdcec 100644 (file)
@@ -295,8 +295,6 @@ class TypeDDLTest(fixtures.TestBase):
             (types.Float, [], {}, "FLOAT"),
             (types.Float, [None], {}, "FLOAT"),
             (types.Float, [12], {}, "FLOAT(12)"),
-            (types.Double, [], {}, "FLOAT"),
-            (types.DOUBLE, [], {}, "FLOAT"),
             (mssql.MSReal, [], {}, "REAL"),
             (types.Integer, [], {}, "INTEGER"),
             (types.BigInteger, [], {}, "BIGINT"),