Bug #54639 | MySQL Workbench does not preserve inserted data from 5.1 model | ||
---|---|---|---|
Submitted: | 20 Jun 2010 2:12 | Modified: | 29 Jun 2010 10:50 |
Reporter: | Dan Cook | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S1 (Critical) |
Version: | 5.2.22 rc 2 | OS: | Windows |
Assigned to: | Sergei Tkachenko | CPU Architecture: | Any |
Tags: | incompatibility, insert import |
[20 Jun 2010 2:12]
Dan Cook
[21 Jun 2010 22:25]
MySQL Verification Team
Thank you for the bug report. Could you please try version 5.2.24. Thanks in advance.
[21 Jun 2010 23:31]
Dan Cook
I have reproduced this issue with the latest RC candidate 5.2.24 (rc) also. << Output from 5.2.24 (rc) >> SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ; USE `mydb` ; -- ----------------------------------------------------- -- Table `mydb`.`table1` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`table1` ( `id` INT NOT NULL , `col1` VARCHAR(45) NOT NULL , `col2` INT UNSIGNED NOT NULL , PRIMARY KEY (`id`) ) ENGINE = InnoDB; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; -- ----------------------------------------------------- -- Data for table `mydb`.`table1` -- ----------------------------------------------------- SET AUTOCOMMIT=0; USE `mydb`; INSERT INTO `mydb`.`table1` (`id`, `col1`, `col2`) VALUES ('1', NULL, '100'); INSERT INTO `mydb`.`table1` (`id`, `col1`, `col2`) VALUES ('2', NULL, '200'); COMMIT;
[21 Jun 2010 23:36]
Dan Cook
Notice that in 5.2.24 (rc) the VARCHAR columns are now NULL.
[21 Jun 2010 23:42]
Dan Cook
Test 5.1 Model
Attachment: test51.mwb (application/octet-stream, text), 3.85 KiB.
[22 Jun 2010 8:21]
Susanne Ebrecht
Many thanks for writing a bug report. I was able to reproduce this.
[22 Jun 2010 12:57]
Sergei Tkachenko
Fixed.
[23 Jun 2010 8:34]
Mike Lischke
Fix confirmed in repository.
[29 Jun 2010 10:50]
Tony Bedford
An entry has been added to the 5.2.25 changelog: Inserts data did not appear to be preserved between MySQL Workbench versions. A model was created with MySQL Workbench 5.1.18 and data inserted via the Insert tab. If the model was then saved and loaded into MySQL Workbench 5.2.22, and the model forward engineered to a SQL script, the generated script contained INSERT statements that inserted NULL instead of the data originally typed in.