[9.1.8]: BUG: Strange error condition in query window for JSON_TABLE.
Posted: Sun 14 Aug 2022 17:44
For some strange reason, the following valid and correct JSON_TABLE command generates an error when executing the following statement in a new query window or stored procedure.
The command returns correct results in the rows section below, but still generates a SQL error as shown:
The exact SQL error text that occurs:
Code: Select all
SET @json = CONVERT('[1095, 1106, 1193, 1288, 1357, 1385, 1390]', JSON);
SELECT ids.* FROM JSON_TABLE(@json, '$[*]' COLUMNS (id INT UNSIGNED PATH '$')) `ids`;
The exact SQL error text that occurs:
Please fix this error - it took me forever to realize there was no issue with the syntax and it is a weird error that only occurs in dbForge. Thank you.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.`json_table` WHERE non_unique = 0' at line 1