#31400: base.py returns TypeError when CONN_MAX_AGE is set in a Postgresql
connection
-------------------------------------+-------------------------------------
Reporter: danb4r | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 3.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: CONN_MAX_AGE, | Triage Stage: Accepted
base.py, Postgresql |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* stage: Unreviewed => Accepted
Comment:
Pretty sure this is due to the fact you use a `str` (`'0'`) instead of an
`int` (`0`) to define `CONN_MAX_AGE`.
Accepting on the basis that
[https://docs.djangoproject.com/en/3.0/ref/databases/#persistent-
connections the documentation] could be adjusted to mention a positive
`int` must be provided instead of the apparently too vague ''number''
term.
--
Ticket URL: <https://code.djangoproject.com/ticket/31400#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.8603ebfd65cf8387235a796ebde407dc%40djangoproject.com.