Opened 6 years ago

Closed 6 years ago

Last modified 6 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:
Needs tests: Patch needs improvement:
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 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by aprilmay

comment:1 Changed 6 years ago by ikelly

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

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

comment:2 Changed 6 years ago by ikelly

(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