]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add postgresql+pg8000 to floats_to_four_decimals
authorTony Locke <tlocke@tlocke.org.uk>
Sun, 11 May 2014 19:58:24 +0000 (20:58 +0100)
committerTony Locke <tlocke@tlocke.org.uk>
Wed, 21 May 2014 18:17:41 +0000 (19:17 +0100)
pg8000 uses binary transfer of floats and so accuracy is lost for floats
that can't be represented exactly in binary.

test/requirements.py

index 8576f2e718bcf432245a9480b61298f3e75ea5a8..09f9735439518565913049d9e984206337931c93 100644 (file)
@@ -608,8 +608,11 @@ class DefaultRequirements(SuiteRequirements):
                             ),
                     ('mssql+pymssql', None, None,
                                 'mssql+pymssql has FP inaccuracy even with '
-                                'only four decimal places '
-                            )
+                                'only four decimal places '),
+                    (
+                        'postgresql+pg8000', None, None,
+                        'postgresql+pg8000 has FP inaccuracy even with '
+                        'only four decimal places '),
                 ])
 
     @property