Closed GoogleCodeExporter closed 8 years ago
This is not a bug. If you create an explicit foreign key, you are expected to
explicitly drop it.
Original comment by noelgrandin
on 4 Mar 2013 at 12:15
Sorry, could you explain this further: why must I explicitly drop a foreign
key constraint to drop a primary key constraint?
Other databases do not have this requirement.
Original comment by A.P.Mil...@gmail.com
on 4 Mar 2013 at 5:39
Marking this as NEW so Thomas can check it out.
Original comment by noelgrandin
on 2 Apr 2013 at 8:24
We use indexes internally to enforce foreign key constraints.
If you had not created a primary key constraint, we would have automatically
created a unique index in order to make the foreign key constraint work.
But since you did, we re-used that primary key index for the foreign key
constraint.
Which means that dropping the primary key index is not allowed.
Sorry, but I can't see any way of making this work any better than it does now.
Original comment by noelgrandin
on 18 Jul 2013 at 12:53
Original issue reported on code.google.com by
A.P.Mil...@gmail.com
on 26 Feb 2013 at 7:18Attachments: