Make editor to understand the statement in stored procedures and functions: CAST(value AS JSON)
This issue will be fixed in the next version 7.4. We will notify you once it’s available for downloading.
-
Ryan commented
When will this be fixed? I have updated to the latest version and this is still an issue.
-
Max commented
For example, the following stored procedure executes well, even in dbForge (when it is before saved by MySQL Workbench).
CREATE DEFINER=`root`@`localhost` PROCEDURE `validJsonUsageDemonstration`()
BEGINDECLARE a JSON;
SET a = CAST('{"id": 1, "phone": "123456"}' AS JSON);SELECT a -> '$.phone';
ENDBut attempting to save the procedure in dbForge gives the error "Unexpected symbol 'json'" with the message "Object has invalid source text and cannot be saved".