Page 1 of 1

[BUG] dbForge Studio 2020 MySQL Enterprise - IDE fails on JSON keys with a hyphen

Posted: Thu 08 Oct 2020 17:50
by Requnix
Version: 9.0.391
Platform: Windows 10

The IDE gives the below error when you try to do a SELECT statement using a JSON Key that has a hyphen. I can't seem to find confirmation as to whether this is a MySQL limitation or not (it's definitely not a problem with JSON and the data can be inserted just fine). I saw talk about it back in 2016 but that's it.

Is this a MySQL limitation, or a dbForge IDE Smartcontent issue?

Image

Re: [BUG] dbForge Studio 2020 MySQL Enterprise - IDE fails on JSON keys with a hyphen

Posted: Fri 09 Oct 2020 11:46
by alexa
We just released dbForge Studio for MySQL, v9.0.435 https://www.devart.com/dbforge/mysql/studio/download.html

Please try the latest build.

Re: [BUG] dbForge Studio 2020 MySQL Enterprise - IDE fails on JSON keys with a hyphen

Posted: Tue 10 Nov 2020 18:14
by Requnix
Bug still exists in 9.0.435.

Re: [BUG] dbForge Studio 2020 MySQL Enterprise - IDE fails on JSON keys with a hyphen

Posted: Fri 13 Nov 2020 17:05
by alexa
This appears to be the error of the server https://stackoverflow.com/questions/35735454/mysql-json-extract-path-expression-error

You should use double quotes if there is a hyphen

Code: Select all

'$."json-message"'