Bug #106892 Run SQL Script: error executing SQL script

Submitted: 1 Apr 2022 15:39 Modified: 2 Apr 2022 10:22
Reporter: Richard Scherck Email Updates:
Status: Won't Fix Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:8.0.28 OS:MacOS
Assigned to: CPU Architecture:Any

[1 Apr 2022 15:39] Richard Scherck
Description:
The Run SQL script functionality from the File menu immediately fails with the error 

Error executing SQL script.'>' not supported between instances of 'NoneType' and 'int'

11:37:36 [ERR][run_script.py:work:149]: Unexpected exception running script: '>' not supported between instances of 'NoneType' and 'int'
Traceback (most recent call last):
  File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/run_script.py", line 138, in work
    self.importer.import_script(file, default_schema = schema, default_charset = charset)
  File "/Applications/MySQLWorkbench.app/Contents/Resources/libraries/workbench/client_utils.py", line 277, in import_script
    self.report_progress("Preparing...", None, None)
  File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/run_script.py", line 81, in report_progress
    if total > 0:
TypeError: '>' not supported between instances of 'NoneType' and 'int'

How to repeat:
File -> Run SQL Script

Select .sql file to execute

Click Open

Verify Preview

Click Run

Error message appears
[2 Apr 2022 10:22] MySQL Verification Team
Hello Richard Scherck,

Thank you for the report and feedback.
Verified as described.

regards,
Umesh
[14 Sep 18:06] Omer Barnir
Posted by developer:

This issue applies to the legacy MySQL Workbench 8.x implementation that is no longer supported or maintained.
MySQL Workbench 26.7 is a complete rewrite using a new technology stack and does not use the affected legacy implementation.
Therefore, this issue is not applicable to the current MySQL Workbench product and as such is closed.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.