JSON is being stored in the database using text (unicode) columns
Bug #845904 reported by
Gavin Panella
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Invalid
|
Low
|
Gavin Panella |
Bug Description
Now that there is a JSON property class in Storm (available in Launchpad) we could improve things by switching to it using BYTEA columns.
Related branches
lp:~allenap/launchpad/switch-to-json-property-bug-845904
Rejected
for merging
into
lp:launchpad/db-devel
- Robert Collins (community): Disapprove
- Stuart Bishop: Pending (db) requested
-
Diff: 13 lines (+9/-0)1 file modifieddatabase/schema/patch-2208-99-1.sql (+9/-0)
Superseded
for merging
into
lp:launchpad
- Robert Collins: Pending requested
- Stuart Bishop: Pending (db) requested
-
Diff: 926 lines (+427/-356)6 files modifieddatabase/sampledata/current-dev.sql (+201/-181)
database/sampledata/current.sql (+196/-174)
database/schema/comments.sql (+1/-0)
database/schema/patch-2208-82-1.sql (+19/-0)
database/schema/patch-2208-99-1.sql (+9/-0)
database/schema/preflight.py (+1/-1)
To post a comment you must log in.
That would be wrong - JSON is a text format (see http:// www.ietf. org/rfc/ rfc4627. txt section 3).
"3. Encoding
JSON text SHALL be encoded in Unicode. The default encoding is
UTF-8."
So BYTEA is just bonkers. We shouldn't use that and should help storm get fixed.