Mysql: adicionar chave estrangeira não dá aviso / erro nas tabelas MyISAM

Aqui está uma tabela que eu fiz:

mysql> show create table notes;
+-------+----------------------------------------------------+
| Table | Create Table                                                                                                                                                                                                                                                                                                                                                  |
+-------+----------------------------------------------------+
| notes | CREATE TABLE `notes` (
  `id` int(11) NOT NULL auto_increment,
  `note` text NOT NULL,
  `status` enum('active','hidden','deleted','followup','starred') default NULL,
  `created` datetime NOT NULL,
  `last_updated` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
+-------+----------------------------------------+

Eu tento adicionar uma restrição de chave estrangeira:

mysql> alter table notes add constraint foreign key(`id`) references `notetypes`.`id` on update cascade on delete restrict;
Query OK, 0 rows affected (0.15 sec)
Records: 0  Duplicates: 0  Warnings: 0

Sem erros! Sem avisos! Por esse motivo, estou usando um banco de dados interno sem chaves estrangeiras (supondo que elas estejam presentes) há algum tempo. Alguma idéia se isso é um bug ou estou fazendo algo errado? Alguma solução alternativa ou opção no mysql que evitaria tais armadilhas?

$ mysql --version
mysql  Ver 14.12 Distrib 5.0.75, for debian-linux-gnu (i486) using readline 5.2

obrigado

JP

questionAnswers(2)

yourAnswerToTheQuestion