Closed ondras closed 9 years ago
From ondrej.zara on October 31, 2013 10:12:05
Status: Accepted
From ondrej.zara on October 31, 2013 10:21:49
Shall be fixed in https://code.google.com/p/wwwsqldesigner/source/detail?r=6706800e25899a71c86796f5f48bbf5262035f21 . Can you please confirm?
Status: Fixed
From jeremy.s...@gmail.com on November 04, 2013 09:02:29
Yes, that's it. Thanks for addressing this so quickly!
From jeremy.s...@gmail.com on October 29, 2013 19:02:28
What steps will reproduce the problem? 1. click save/load
Instead an alert is presented: XML error: NULL Output
Step 5: Expected output is XML data representing the database er diagram.
Instead a php alert is issued for an undefined index on line 174 of LayerMYSQL.php What version of the product are you using? On what operating system? Version: 2.7 OS: Windows 7 WAMP stack Please provide any additional information below. Problem: public static function Keys($table) { ... line 174: return self::$keys[$table['name']]; ... }
Doesn't take into account that the table name might not exist in the information_schema.statistics table and therefore not be an entry in the $keys[] index.
Fix: Mimicked the public static function Relations() return if clause: public static function Keys($table) { ... if(isset(self::$keys[$table['name']])) return self::$keys[$table['name']]; return array(); ... }
Thanks! Jeremy
Original issue: http://code.google.com/p/wwwsqldesigner/issues/detail?id=176