Bug #60232 | Duplicate column names are allowed | ||
---|---|---|---|
Submitted: | 24 Feb 2011 13:44 | Modified: | 31 Jan 2018 10:15 |
Reporter: | Michael Garcia | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S3 (Non-critical) |
Version: | 5.2.31 CE | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[24 Feb 2011 13:44]
Michael Garcia
[24 Feb 2011 13:53]
Valeriy Kravchuk
Indeed, not only this is not checked while columns are added, but even when generating SQL there are no checks, and the following code is generated without any warnings: CREATE TABLE IF NOT EXISTS `mydb`.`table1` ( `idtable1` INT NOT NULL , `c1` VARCHAR(45) NULL , `c2` VARCHAR(45) NULL , `c1` VARCHAR(45) NULL , PRIMARY KEY (`idtable1`) ) ENGINE = InnoDB;
[31 Jan 2018 10:15]
Mike Lischke
Posted by developer: This behavior is by design. It must be possible to temporarily have objects with the same name to make renames easily possible. If you want automatic validation of such duplicates before doing a synchronization, you can use the MySQL Workbench Standard Edition (a commercial offering).