Bug #56186 Python plugin crashes with diagram.getConnectionForForeignKey
Submitted: 23 Aug 2010 11:13 Modified: 24 Aug 2010 7:52
Reporter: Karsten Wutzke Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.25 OS:Windows (7)
Assigned to: CPU Architecture:Any
Tags: diagram, getConnectionForForeignKey, plugin, python

[23 Aug 2010 11:13] Karsten Wutzke
Description:
Try this in a Python plugin:

diagram = grt.root.wb.doc.physicalModels[0].diagrams[0]

for schema in catalog.schemata:
    for table in schema.tables:
        for fk in table.foreignKeys:
            diagram.getConnectionForForeignKey(fk) # crash'n'burn!

How to repeat:
see above
[23 Aug 2010 14:51] Alfredo Kojima
Hi

I can't repeat this crash neither in 5.2.25 not in .26. Anyhow, can you verify if the same thing still happens with 5.2.26?
[23 Aug 2010 18:19] Karsten Wutzke
I changed this to a Windows bug.

I can confirm this bug for 5.2.25, but it doesn't crash with 5.2.26.
[24 Aug 2010 7:52] Valeriy Kravchuk
Not repeatable with a recent version, 5.2.26.