summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-11-18 16:16:01 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-11-18 16:16:01 +0000
commit9141b6c15eac4827f0df2e3f87f331c821d13b5a (patch)
tree6f79ccdc19e9b80047496d86b404794e9e7525c0 /lib/sqlalchemy/sql
parent5b6393fb7b4282da0301eb88da5b7f33a8614d3e (diff)
parent93fad8fb0c5421ad162064e0aa506cb1e70cbf2b (diff)
downloadsqlalchemy-9141b6c15eac4827f0df2e3f87f331c821d13b5a.tar.gz
Merge "remove "native decimal" warning" into main
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/sqltypes.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/sqlalchemy/sql/sqltypes.py b/lib/sqlalchemy/sql/sqltypes.py
index 559946072..52033f586 100644
--- a/lib/sqlalchemy/sql/sqltypes.py
+++ b/lib/sqlalchemy/sql/sqltypes.py
@@ -490,16 +490,6 @@ class Numeric(_LookupExpressionAdapter, TypeEngine):
# we're a "numeric", DBAPI will give us Decimal directly
return None
else:
- util.warn(
- "Dialect %s+%s does *not* support Decimal "
- "objects natively, and SQLAlchemy must "
- "convert from floating point - rounding "
- "errors and other issues may occur. Please "
- "consider storing Decimal numbers as strings "
- "or integers on this platform for lossless "
- "storage." % (dialect.name, dialect.driver)
- )
-
# we're a "numeric", DBAPI returns floats, convert.
return processors.to_decimal_processor_factory(
decimal.Decimal,