Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10224 closed (fixed)

Oracle backend: raw binary field breaks

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

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 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by aprilmay

Attachment: django-oracle-binary.diff added

comment:1 Changed 8 years ago by Ian Kelly

Resolution: fixed
Status: newclosed

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

comment:2 Changed 8 years ago by Ian Kelly

(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