MySQL Forums
Forum List  »  InnoDB

SET DEFAULT in FOREIGN KEY constraint
Posted by: Karsten Wutzke
Date: June 11, 2009 04:58AM

Hello,

MySQL doesn't support the SET DEFAULT referential action with FOREIGN KEYs because of InnoDB.

What's the reason for that?

I don't see any difference between setting a default ON DELETE or ON UPDATE and a entering some value manually. Why not just generate an error and rollback, which InnoDB can do?

Karsten

Options: ReplyQuote


Subject
Views
Written By
Posted
SET DEFAULT in FOREIGN KEY constraint
3286
June 11, 2009 04:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.