Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8802 closed (fixed)

Document database-dependent behavior of BooleanField.

Reported by: stengleind Owned by: jacob
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

As noted in http://code.djangoproject.com/ticket/7190, BooleanField can be either an int or a bool depending on the database used.

This bit of non-deterministic behavior should be documented very clearly.

-Dave

Attachments (1)

django-mysql-bool-note.diff (921 bytes) - added by Alex 7 years ago.

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by Alex

comment:1 Changed 7 years ago by Alex

  • Component changed from Uncategorized to Documentation
  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 7 years ago by stengleind

Looks like the doc in the code should be updated. There is a fine difference between bool and int:

1 == True

True

1 is True

False

-Dave

comment:3 Changed 7 years ago by Alex

  • milestone set to 1.0

comment:4 Changed 7 years ago by jacob

  • Owner changed from nobody to jacob
  • Status changed from new to assigned

comment:5 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [8910]) Fixed #8802 -- Documented MySQL's usage of 1/0 instead of True/False for model
BooleanFields.

comment:6 Changed 4 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top