Bug #101704 JSON type in CAST() and CONVERT() is recognized as error in model editors
Submitted: 21 Nov 2020 5:02 Modified: 21 Nov 2020 7:46
Reporter: Ju-Myoung Kim Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:8.0.22 OS:Windows (Microsoft Windows 10 Pro)
Assigned to: CPU Architecture:x86
Tags: WBBugReporter

[21 Nov 2020 5:02] Ju-Myoung Kim
Description:
Editor in model recognizes JSON type in CAST() and CONVERT() as error, which is fine in SQL editor in a running server.

How to repeat:
1. Open a model.
2. Select a schema.
3. Add a routine.
4. Add a statement "SELECT CAST(1 AS JSON);"
5. The editor shows error on the line.
[21 Nov 2020 5:05] Ju-Myoung Kim
This bug prevents exporting a model to a script.
[21 Nov 2020 7:24] Ju-Myoung Kim
There is no problem in exporting model to script.
[21 Nov 2020 7:46] MySQL Verification Team
Hello Ju-Myoung Kim,

Thank you for the report and test case.

regards,
Umesh