Bug #38532 | MySQL Administrator - Stored Procedure dropped from database if edit fails. | ||
---|---|---|---|
Submitted: | 3 Aug 2008 0:54 | Modified: | 8 Oct 2008 13:50 |
Reporter: | Bryan Allo | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Administrator | Severity: | S2 (Serious) |
Version: | 1.2.12 | OS: | Windows (Windows XL SP3 v.3311) |
Assigned to: | Mike Lischke | CPU Architecture: | Any |
Tags: | Drop, Edit, mysql administrator, stored procedure |
[3 Aug 2008 0:54]
Bryan Allo
[3 Aug 2008 5:47]
Bryan Allo
I realize the root of this problem may be in the way MySQL Server (not MySQL Administrator) handles stored procedure updates. None-the less I believe this can be solved in the MySQL Administrator interface; by copying/cache-ing the stored procedure in memory everytime you open it for editing... then when you get the SQL execution error, MySQL Administrator automatically re-executes the cached procedure. That way nothing is lost as the procedure automatically reverts to it's last stable/syntactically-correct state (of there is such a word). This step should definitely happen if the user clicks the "cancel" button after a SQL execution error while trying to save any changes.
[3 Aug 2008 5:56]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described.
[8 Oct 2008 13:50]
Mike Lischke
Duplicate of Bug #37546