Bug #57658 Copy SQL to Clipboard wrong on a duplicate table
Submitted: 22 Oct 2010 14:31 Modified: 29 Dec 2012 0:47
Reporter: Bogdan Bezuz Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.28 CE, 5.2.29 OS:Windows (Win 7)
Assigned to: Assigned Account CPU Architecture:Any
Tags: copy to clipboard

[22 Oct 2010 14:31] Bogdan Bezuz
Description:
Copy SQL to clipboard from Diagram returns wrong SQL

How to repeat:
(as i remember)
Create tables in diagram, 
- draw relations
- copy all tables from diagram in a new diagram,
- rename the copies as the original tables (remove _copy1)
- change fields in the new tables
- use 'copy SQL to clipboard' on the new tables 

The clipboard SQL will contain the original table SQL
[22 Oct 2010 16:30] Valeriy Kravchuk
Verified as described with your .mwb file.
[26 Oct 2010 22:42] Alfredo Kojima
Regardless of this bug, why do you have 2 copies of each table?
You can have the same table object appear in multiple diagrams.
[27 Oct 2010 6:04] Bogdan Bezuz
I've stopped working with that diagram but in the end the tables will be different, same fields but a bit different naming.

Only after i figured out i should create a new schema in the same project and move them there.

Btw, i haven't seen an easy way to copy multiple tables across schemas (like copying objects from the diagram)