Opened 6 years ago

Closed 22 months ago

#13924 closed New feature (wontfix)

Add information about error "can't adapt type 'Decimal'" to documentation

Reported by: dmkurilov Owned by: nobody
Component: Documentation Version:
Severity: Normal Keywords: Decimal error
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When you use Django with Apache and mod_wsgi (as described here) and when your application uses PostgreSQL with psycopg2 sometimes you get error ProgrammingError: can't adapt type 'Decimal'.

Here and here is decision. I guess it would be nice to read about this error and ways to solve it in Django documentation rather than use Google.


Change History (5)

comment:1 Changed 6 years ago by gabrielhurley

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

There may be a useful tidbit Django could share here, but I'd like to see any potential patch have an explanation of why either the process_group directive or daemon mode setting prevent this Decimal value from being passed in erroneously. Moreover, the threads linked recommend upgrading psycopg2 and mod_wsgi; is there some minimum version required for this fix to work? Simply saying "if you're getting this error then do this" doesn't seem like enough to me.

comment:2 Changed 5 years ago by graham_king

  • Severity set to Normal
  • Type set to New feature

comment:3 Changed 4 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:4 Changed 4 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:5 Changed 22 months ago by timgraham

  • Resolution set to wontfix
  • Status changed from new to closed

This was fixed in psycopg 2.4.3 (ticket #52).

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