]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
update Numeric/Float docstrings
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 14 Apr 2022 13:59:11 +0000 (09:59 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 14 Apr 2022 14:01:44 +0000 (10:01 -0400)
commit44f7bb169d99723417d25b69cedf57982efbf79f
tree7268fe44ba79cd68ed5b44c1a03422041ce2a567
parent4d85cec7c62016a8b948a688debc53fa8adecbb5
update Numeric/Float docstrings

These docs were very out of date re: cdecimal.   Additionally,
as pointed out in #5252, the Numeric documentation is misleading;
SQLAlchemy's Numeric hierarchy resembles more of the Oracle
approach where precision and scale solely determine the kind of
datatype being worked with.   Float is essentially Numeric with
different defaults.

Fixes: #5252
Change-Id: I661109fabf04ba7831c7ddafba15321dd445ea5d
(cherry picked from commit 3d300066e8b20a89e0b82bf09dd0c4016f5f8e51)
(cherry picked from commit 0c0bcd95ce843d8541ae952ec5262851d109ab0a)
lib/sqlalchemy/sql/sqltypes.py