summaryrefslogtreecommitdiff
path: root/docs/ref/databases.txt
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2010-02-24 17:36:18 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2010-02-24 17:36:18 +0000
commit16fe73d918c8a35f7122aed858312bd3163ac454 (patch)
tree06c8c09da94ae39e91735feb581139a2c242a138 /docs/ref/databases.txt
parent9f4bf525f887db32b7260909a0140d68910aa042 (diff)
Fixed #7190. Boolean fields now return bool values instead of 1 or 0. Thanks, Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/databases.txt')
-rw-r--r--docs/ref/databases.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt
index afead83d4d..3a7c3eaaca 100644
--- a/docs/ref/databases.txt
+++ b/docs/ref/databases.txt
@@ -326,12 +326,11 @@ Notes on specific fields
Boolean fields
~~~~~~~~~~~~~~
-Since MySQL doesn't have a direct ``BOOLEAN`` column type, Django uses a
-``TINYINT`` column with values of ``1`` and ``0`` to store values for the
-:class:`~django.db.models.BooleanField` model field. Refer to the documentation
-of that field for more details, but usually this won't be something that will
-matter unless you're printing out the field values and are expecting to see
-``True`` and ``False.``.
+.. versionchanged:: 1.2
+
+In previous versions of Django when running under MySQL ``BooleanFields`` would
+return their data as ``ints``, instead of true ``bools``. See the release
+notes for a complete description of the change.
Character fields
~~~~~~~~~~~~~~~~