Django

Code

Ticket #5134 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

postgresql backend doesn't cast empty strings to unicode

Reported by: John Shaffer <jshaffer2112@gmail.com> Assigned to: mtredinnick
Milestone: Component: Database layer (models, ORM)
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

As far as I am aware, every other backend returns every string as unicode.

This is very minor in practice, but it does make doctests uglier.

Attachments

Change History

08/10/07 23:39:19 changed by Barry Pederson <bp@barryp.org>

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

Exactly which version of psycopg are you seeing this with?

08/10/07 23:47:53 changed by John Shaffer <jshaffer2112@gmail.com>

libpq5 8.2.4-0ubuntu0.7.04 python-psycopg 1.1.21-13ubuntu1 python 2.5.1-0ubuntu1

08/10/07 23:51:57 changed by mtredinnick

  • owner changed from adrian to mtredinnick.
  • stage changed from Unreviewed to Accepted.

Indeed. Should be easy to fix, too. I'll do it this afternoon.

08/11/07 00:23:19 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [5834]) Fixed #5134 -- Return empty strings as Unicode in psycopg1 backend.


Add/Change #5134 (postgresql backend doesn't cast empty strings to unicode)




Change Properties
Action