summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2023-04-27 00:06:44 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2023-04-27 00:06:44 +0000
commitc89c2b3d9a18bd0eb4c8ace50ef875101c9f4b70 (patch)
tree62dc8fbcedb522fae2720bb56c31e4fd16c116a7 /test
parentf476155d21f6fb2e8e5cf5d874f7ec149e8205b4 (diff)
parent6a0d61f12110624ad8709f67d4523e82bde262e5 (diff)
downloadsqlalchemy-c89c2b3d9a18bd0eb4c8ace50ef875101c9f4b70.tar.gz
Merge "ensure correct cast for floats vs. numeric; other fixes" into main
Diffstat (limited to 'test')
-rw-r--r--test/dialect/mssql/test_types.py2
-rw-r--r--test/requirements.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/test/dialect/mssql/test_types.py b/test/dialect/mssql/test_types.py
index d94984e0e..916d4252f 100644
--- a/test/dialect/mssql/test_types.py
+++ b/test/dialect/mssql/test_types.py
@@ -300,6 +300,8 @@ class TypeDDLTest(fixtures.TestBase):
(types.Float, [None], {}, "FLOAT"),
(types.Float, [12], {}, "FLOAT(12)"),
(mssql.MSReal, [], {}, "REAL"),
+ (types.Double, [], {}, "DOUBLE PRECISION"),
+ (types.Double, [53], {}, "DOUBLE PRECISION"),
(types.Integer, [], {}, "INTEGER"),
(types.BigInteger, [], {}, "BIGINT"),
(mssql.MSTinyInteger, [], {}, "TINYINT"),
diff --git a/test/requirements.py b/test/requirements.py
index 9a8500ac3..3c72cd07d 100644
--- a/test/requirements.py
+++ b/test/requirements.py
@@ -1396,6 +1396,10 @@ class DefaultRequirements(SuiteRequirements):
)
@property
+ def float_or_double_precision_behaves_generically(self):
+ return skip_if(["oracle", "mysql", "mariadb"])
+
+ @property
def precision_generic_float_type(self):
"""target backend will return native floating point numbers with at
least seven decimal places when using the generic Float type."""