Bug #58998 | Generated SQL scripts should clean up connection settings after themselves | ||
---|---|---|---|
Submitted: | 17 Dec 2010 12:50 | Modified: | 8 Mar 2011 11:50 |
Reporter: | Craig Fowler | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S4 (Feature request) |
Version: | 5.2.31 | OS: | Linux (Debian Testing, 64-bit using Ubuntu 10.04 .deb package) |
Assigned to: | Alexander Musienko | CPU Architecture: | Any |
Tags: | create.forward-engineer, SQL |
[17 Dec 2010 12:50]
Craig Fowler
[17 Dec 2010 14:01]
Valeriy Kravchuk
Indeed, the following code is generated: SET AUTOCOMMIT=0; USE `mydb`; INSERT INTO `mydb`.`table1` (`id`, `c1`) VALUES (1, NULL); INSERT INTO `mydb`.`table1` (`id`, `c1`) VALUES (2, NULL); INSERT INTO `mydb`.`table1` (`id`, `c1`) VALUES (3, NULL); COMMIT; Thus if you'll continue to use the same connection autocommit will remain switched off.
[3 Mar 2011 13:41]
Johannes Taxacher
fix confirmed in repository
[8 Mar 2011 11:51]
Tony Bedford
An entry has been added to the 5.2.32 changelog: Generated scripts did not manage connection variables cleanly. For example, the state of AUTOCOMMIT was not preserved by the script produced by forward engineering a SQL CREATE script. The script switched off AUTOCOMMIT, but did not then restore it correctly to its previous state.