Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support Django 6.2's handling of booleans for non-postgresql databases.
  • Loading branch information
tim-schilling committed Jun 14, 2026
commit 577358dc08b5cdb7383cc392aad4bf0ae7eaa304
1 change: 1 addition & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Pending
``debug_toolbar_urls``.
* Fixed cookie ``expires`` calculation in ``djdt.cookie.set``.
* Account for the new ``CULL_PROBABILITY`` in Django 6.2 in tests.
* Support Django 6.2's handling of booleans for non-postgresql databases.
Comment thread
matthiask marked this conversation as resolved.
Outdated

6.3.0 (2026-04-01)
------------------
Expand Down
2 changes: 2 additions & 0 deletions docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ backend
backends
backported
biome
booleans
checkbox
contrib
csp
Expand Down Expand Up @@ -47,6 +48,7 @@ multi
neo
nothreading
paddings
postgresql

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
postgresql
PostgreSQL

Comment thread
matthiask marked this conversation as resolved.
Outdated
pre
profiler
psycopg
Expand Down
9 changes: 8 additions & 1 deletion tests/panels/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,16 @@ def test_param_conversion(self):
# ensure query was logged
self.assertEqual(len(self.panel._queries), 3)

if connection.vendor == "mysql" and django.VERSION >= (4, 1):
if (
connection.vendor == "mysql"
and django.VERSION >= (4, 1)
or connection.vendor != "postgresql"
and django.VERSION >= (6, 2)
):
# Django 4.1 started passing true/false back for boolean
# comparisons in MySQL.
# Django 6.2 started passing true/false for all-non
# postgres databases.
expected_bools = '["Foo", true, false]'
else:
expected_bools = '["Foo"]'
Expand Down