Closed
Bug 503935
Opened 15 years ago
Closed 14 years ago
Don't allow NULL values in data column in tiki_pages
Categories
(support.mozilla.org :: Knowledge Base Software, task)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: cww, Assigned: cww)
Details
Attachments
(2 files)
NULL is generally really really bad and we should be defaulting to an empty string. (Case in point, it caused bug 485329) Attaching two SQL queries, one to update the existing articles to '' and one to add a default value to the data column so this doesn't happen again.
Attachment #388288 -
Flags: review?(laura)
We should fix tiki_history too in case we come to rely on the non-NULL nature of page info.
Comment 2•15 years ago
|
||
Are there places in the code that depend on it being NULL (ie tests of ISNULL and so on)? I'm a little scared to r+ this without an audit.
Updated•15 years ago
|
Attachment #388288 -
Flags: review?(laura)
Comment 3•15 years ago
|
||
Comment on attachment 388288 [details]
fix null data
See my previous comment.
Attachment #388288 -
Flags: review-
Comment 4•15 years ago
|
||
Comment on attachment 388301 [details]
fix tiki_history
See my previous comment.
Attachment #388301 -
Flags: review?(laura) → review-
Comment 5•15 years ago
|
||
Note as well that NULL is semantically different from the empty string. I'm not convinced. r- for now.
Comment 6•14 years ago
|
||
Bugs in tikiwiki, going away.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•