Django

Code

Ticket #3492 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

[patch] db.backends.postgres chokes on unicode extra

Reported by: Chris.Wesseling@cwi.nl Assigned to: adrian
Milestone: Component: Database wrapper
Version: SVN Keywords: unicode postgresql unicode-branch
Cc: Triage Stage: Design decision needed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

If you use unicode in Model.objects.extra(...), postgres chokes.
For instance when using Form.clean_data from newforms.

Attachments

postgresql_unicode_extra_fix.patch (1.8 kB) - added by Chris.Wesseling@cwi.nl on 02/13/07 14:30:03.
Fixes a bug when using unicode in extra query

Change History

02/13/07 14:30:03 changed by Chris.Wesseling@cwi.nl

  • attachment postgresql_unicode_extra_fix.patch added.

Fixes a bug when using unicode in extra query

02/13/07 15:01:44 changed by Chris.Wesseling@cwi.nl

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

It's a bad example. In the example 'params' should be used...

02/14/07 03:38:08 changed by Michael Radziej <mir@noris.de>

  • stage changed from Unreviewed to Design decision needed.

This is for psycopg1. Related for mysql: #3492. It should probably be solved for all backends ... See discussion in django-developers

05/14/07 16:58:39 changed by mtredinnick

  • keywords changed from unicode postgresql to unicode postgresql unicode-branch.

This has been fixed in the unicode branch (tested with all backends) as part of the wider fixes there. I've added the test from this patch in [5243] and will close this ticket once the unicode branch is merged into trunk.

07/04/07 07:11:05 changed by mtredinnick

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

(In [5609]) Merged Unicode branch into trunk (r4952:5608). This should be fully backwards compatible for all practical purposes.

Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702


Add/Change #3492 ([patch] db.backends.postgres chokes on unicode extra)




Change Properties
Action