Code

Opened 7 years ago

Closed 7 years ago

#5134 closed (fixed)

postgresql backend doesn't cast empty strings to unicode

Reported by: John Shaffer <jshaffer2112@…> Owned by: mtredinnick
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (0)

Change History (4)

comment:1 Changed 7 years ago by Barry Pederson <bp@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Exactly which version of psycopg are you seeing this with?

comment:2 Changed 7 years ago by John Shaffer <jshaffer2112@…>

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

comment:3 Changed 7 years ago by mtredinnick

  • Owner changed from adrian to mtredinnick
  • Triage Stage changed from Unreviewed to Accepted

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

comment:4 Changed 7 years ago by mtredinnick

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

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.