Bug #25031 | No foreign key definition passed to storage engine | ||
---|---|---|---|
Submitted: | 13 Dec 2006 9:35 | Modified: | 20 Jan 2007 14:29 |
Reporter: | Jan Lindström | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S4 (Feature request) |
Version: | 5.0 & 5.1 | OS: | Any (Any) |
Assigned to: | CPU Architecture: | Any |
[13 Dec 2006 9:35]
Jan Lindström
[20 Jan 2007 14:29]
Sergei Golubchik
It's not obvious that foreign keys should be in table->s->keys, they are contraints, not indexes for the optimizer. Anyway, there's a task in TODO - provide an API for storage engines to access foreign key definitions, check foreign key constraints, and so on. But it's still in the design phase, so it's a bit too early to implement a specific solution.