| Bug #697 | foreign key doesn't work any table is named user. | ||
|---|---|---|---|
| Submitted: | 22 Jun 2003 18:51 | Modified: | 23 Jun 2003 1:33 |
| Reporter: | [ name withheld ] | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
| Version: | OS: | Windows (windows) | |
| Assigned to: | CPU Architecture: | Any | |
[22 Jun 2003 18:51]
[ name withheld ]
[23 Jun 2003 1:33]
Indrek Siitan
You need to add a space between "user" and the starting parentheses, otherwise MySQL will parse it as a call to the user() function, which exists. So the correct syntax would be: foreign key references user (u_id) on delete set null;
