Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#10224 closed (fixed)

Oracle backend: raw binary field breaks

Reported by: aprilmay Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Keywords: oracle binary raw
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Support for raw binary Oracle can be useful when interfacing django with an existing database.
In db/backends/oracle/base.py such field wrongly falls back to unicode decode.
See attachment for a possible simple fix (the decoding of the binary data is then left to the application, possibly using binascii.b2a_hex).

Attachments (1)

django-oracle-binary.diff (3.4 KB ) - added by aprilmay 15 years ago.

Download all attachments as: .zip

Change History (3)

by aprilmay, 15 years ago

Attachment: django-oracle-binary.diff added

comment:1 by Erin Kelly, 15 years ago

Resolution: fixed
Status: newclosed

(In [9821]) Fixed #10224: Don't attempt to decode binary string data in the Oracle backend.

comment:2 by Erin Kelly, 15 years ago

(In [9822]) [1.0.X] Fixed #10224: Don't attempt to decode binary string data in the Oracle backend. Backport of [9821] from trunk.

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