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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: xiaoou.wu, Assigned: xiaoou.wu)

References

Details

(Keywords: regression)

Attachments

(2 files)

Oracle is default with "ON DELETE RESTRICT" for a fk constraint, but it doesn't have a RESTRICT keyword
Attached patch v1Splinter Review
Attachment #370339 - Flags: review?(mkanat)
Attachment #370339 - Flags: review?(mkanat) → review+
Flags: approval3.4+
Flags: approval3.2+
Flags: approval+
Target Milestone: --- → Bugzilla 3.2
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
Summary: [Oracle] Missing keyword RESTRICT on fk creatation → [Oracle] Missing keyword RESTRICT on fk creation (DB::Schema explicitly specified DELETE => 'RESTRICT')
Attached patch v1Splinter Review
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+
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
This was introduced by bug 462068, which you reviewed, Max. ;) And yes, the patch landed in 3.5 only.
Depends on: 462068
Keywords: regression
Version: 3.3.4 → 3.5
(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.

Attachment

General

Creator:
Created:
Updated:
Size: