Subject: | MySQL parser doesn't parse enumerated values correctly |
Date: | Sat, 29 Jul 2006 14:39:55 +1200 |
To: | <bug-SQL-Translator [...] rt.cpan.org> |
From: | "Dan Horne" <dan.horne [...] redbone.co.nz> |
Hi
The MySQL parser interprets enumerated data types incorrectly. For instance,
the original table DDL:
Create table zoo (
zoo_id Int NOT NULL AUTO_INCREMENT,
animal Enum('tiger','elephant','gazelle') DEFAULT 'tiger',
Index AI_zoo_id (zoo_id),
Primary Key (zoo_id)) ENGINE = InnoDB;
The parser produces
CREATE TABLE zoo (
zoo_id integer(11) NOT NULL auto_increment,
animal enum() DEFAULT 'tiger',
INDEX AI_zoo_id (zoo_id),
PRIMARY KEY (zoo_id)
) Type=InnoDB;
Regards
Dan Horne