Bug #84390 Python scripting API doesn't pass options to forward-engineering
Submitted: 3 Jan 13:46
Reporter: Neil Sedger Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Workbench: Migration Severity:S3 (Non-critical)
Version: OS:Any
Assigned to:
Tags: DbMySQLFE, forward-engineering, python

[3 Jan 13:46] Neil Sedger
Description:
DbMySQLFE's generateSQLCreateStatements() takes a Dict of options and looks like it tries to pass it to the .cpp layer but doesn't seem to make it as setting them has no effect.

These options are available as a list of tickboxes on the first page of the 'Forward Engineer SQL Script' wizard.

Here is the list of options in .cpp:
https://github.com/mysql/mysql-workbench/blob/406ec7d6900a806c16e42f9fd15f0d3f6111c18a/plu...

How to repeat:
Execute a forward-engineering export from the commandline using the script here:

https://github.com/tomoemon/mwb2sql/blob/master/mwb2sql.sh

Set an option in the dictionary at the end of line 19, for example 'OmitSchemata' (see link in the description for options used by the cpp layer) - it will have no effect.