Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL Workbench support for json colums

I have the following error in MySQL Workbench: enter image description here

My settings are set to mysql 5.7 version: enter image description here

How can I solve this?

like image 380
vlio20 Avatar asked Apr 20 '16 07:04

vlio20


2 Answers

I figured it out: the version number in the settings dialogue shown by the OP changes only the version for the live database side of the program. On the model side, each model has its own version setting under Model -> Model Options -> MySQL: enter image description here

I inferred that because I created the model before I updated the version that my model retained the old version number, unchecked the inherit box, and changed the version - problem solved.

like image 182
Milton Avatar answered Sep 28 '22 00:09

Milton


You looked at the right place, provided your SQL editor is from a model object, not from the SQL IDE. In the latter case the server you connect to decides what features are available.

However, JSON support has been added in 5.7.8 and hence the error checker complains if you only have a version below that (5.7 is the same as 5.7.0). We already recognized this situation and hence changed the version field from a selector to a free text field, which then allows to specify the release version as well. This change will be available with the next WB version.

like image 41
Mike Lischke Avatar answered Sep 27 '22 22:09

Mike Lischke