Closed
Bug 486239
Opened 15 years ago
Closed 15 years ago
[Oracle] Missing keyword RESTRICT on fk creation (DB::Schema explicitly specified DELETE => 'RESTRICT')
Categories
(Bugzilla :: Database, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.6
People
(Reporter: xiaoou.wu, Assigned: xiaoou.wu)
References
Details
(Keywords: regression)
Attachments
(2 files)
771 bytes,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
951 bytes,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
Oracle is default with "ON DELETE RESTRICT" for a fk constraint, but it doesn't have a RESTRICT keyword
Attachment #370339 -
Flags: review?(mkanat)
Updated•15 years ago
|
Attachment #370339 -
Flags: review?(mkanat) → review+
Updated•15 years ago
|
Flags: approval3.4+
Flags: approval3.2+
Flags: approval+
Target Milestone: --- → Bugzilla 3.2
Comment 2•15 years ago
|
||
I just realized that this isn't the right solution. For some reason, somebody explicitly specified RESTRICT in the DB Schema, which they shouldn't have done, since it's the default. We just have to remove that explicit setting, and then we should be good to go, I'm pretty sure. Although this patch won't *hurt* certainly, in case somebody does this same thing again in the future.
Flags: approval3.4+
Flags: approval3.2+
Flags: approval+
Target Milestone: Bugzilla 3.2 → Bugzilla 3.4
Updated•15 years ago
|
Summary: [Oracle] Missing keyword RESTRICT on fk creatation → [Oracle] Missing keyword RESTRICT on fk creation (DB::Schema explicitly specified DELETE => 'RESTRICT')
Comment 3•15 years ago
|
||
I'm just going to grant myself review on this. Even though this is going onto a stable branch, it's a one-line change, and I really think this is OK (and I really want to check this bug in because it causing landfill to send me an email every hour).
Attachment #371011 -
Flags: review+
Comment 4•15 years ago
|
||
Turns out the problem was only on HEAD, not even on 3.4. So I just patched HEAD. I applied both patches. Checking in Bugzilla/DB/Schema.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Schema.pm,v <-- Schema.pm new revision: 1.115; previous revision: 1.114 done cd ../mkChecking in Bugzilla/DB/Schema/Oracle.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Schema/Oracle.pm,v <-- Oracle.pm new revision: 1.10; previous revision: 1.9 done
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: approval+
Resolution: --- → FIXED
Target Milestone: Bugzilla 3.4 → Bugzilla 3.6
Comment 5•15 years ago
|
||
This was introduced by bug 462068, which you reviewed, Max. ;) And yes, the patch landed in 3.5 only.
Comment 6•15 years ago
|
||
(In reply to comment #5) > This was introduced by bug 462068, which you reviewed, Max. ;) Um, I knew that. Was there some reason to point it out?
You need to log in
before you can comment on or make changes to this bug.
Description
•