Bug #75066 Continue SQL on errors, button and preference are not synced
Submitted: 2 Dec 2014 1:32 Modified: 2 Dec 2014 10:51
Reporter: Philip Olson Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:6.2.4 OS:Any
Assigned to: CPU Architecture:Any

[2 Dec 2014 1:32] Philip Olson
Description:
The "Continue SQL script execution on errors (by default)" user preference (under SQL Execution) does not appear in sync with the "Toggle whether execution of SQL script should continue after failed  statements" button in the SQL editor. Disabling the preference does not affect the aforementioned button.

Related: The button value is cached. In other words, after toggling the button to off, then closing and reopening workbench, the button is off. Or vice-versa. However, the preference does not change.

Related: MySQL Bug #70809 is related, but it requests additional (different) changes. 

How to repeat:
1. Change the preference to disabled (unchecked)
2. Load the SQL editor, and note the button remains selected (checked)

Tested: Windows 7 + WB 6.2.4

Suggested fix:
If preference is disabled:
    have button disabled by default
else:
    have button enabled by default

However, if the two things (preference and button) are unrelated, then document it as such (but please explain the difference here first).

Note: Not sure how the "cached" behavior should be handled, maybe not cache it at all (and instead rely on the preference)?
[2 Dec 2014 10:51] MySQL Verification Team
Thank you for the bug report.