Code

Opened 5 years ago

Closed 5 years ago

Last modified 5 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 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by aprilmay

comment:1 Changed 5 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 5 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.

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.