From f452d4232e1c14269bf2f1bd234d6e4ef462dc55 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sun, 8 Sep 2019 23:25:53 +0200 Subject: [2.2.x] Fixed #29823 -- Doc'd limitation of DecimalField on SQLite. Backport of b8dff52f440adfb78b40e19ee8bff45373ca2501 from master --- docs/ref/databases.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/ref/databases.txt') diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 84dce9fa7c..2520e479c3 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -665,6 +665,18 @@ substring filtering. .. _documented at sqlite.org: https://www.sqlite.org/faq.html#q18 +.. _sqlite-decimal-handling: + +Decimal handling +---------------- + +SQLite has no real decimal internal type. Decimal values are internally +converted to the ``REAL`` data type (8-byte IEEE floating point number), as +explained in the `SQLite datatypes documentation`__, so they don't support +correctly-rounded decimal floating point arithmetic. + +__ https://www.sqlite.org/datatype3.html#storage_classes_and_datatypes + "Database is locked" errors --------------------------- -- cgit v1.3