Hi!
It is this bug:
http://bugs.mysql.com/bug.php?id=13301
MySQL still does not give a warning for syntax that does not work.
Best regards,
Heikki
Oracle Corp./Innobase Oy
InnoDB - transactions, row level locking, and foreign keys for MySQL
InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up MyISAM
tables
http://www.innodb.com/order.php
"Bill Karwin" <bill@karwin.com> kirjoitti
viestissä:e23bov0gv1@enews2.newsguy.com...[color=blue]
> clops wrote:[color=green]
>> mysql> CREATE TABLE struct(
>> -> node_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
>> -> parent_node_id INT UNSIGNED REFERENCES
>> struct.node_id ON DELETE CASCADE ON UPDATE CASCADE,[/color]
> . . .
>
> Normally the syntax is "REFERENCES tablename(columnname)", not
> "tablename.columnname".
>
> See
http://dev.mysql.com/doc/refman/5.0/...ate-table.html
>
> I'm not sure how MySQL is interepreting this CREATE TABLE, or why it
> didn't give you an error. But it may not be enforcing what you think it's
> enforcing.
>
> Regards,
> Bill K.[/color]