G
G
Genri_Rus2021-08-13 22:14:47
MariaDB
Genri_Rus, 2021-08-13 22:14:47

Why doesn't the JSON_CONTAINS function work in MariaDB?

Here is an example sql query:

$this->db->query("SELECT * FROM `" . DB_PREFIX . "custom_fields_option` WHERE JSON_CONTAINS(option_in_show, '{\"id\":\"15\"}')");

It gives me an error that there is no such function, version 10.1.25-MariaDB

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-08-13
@Genri_Rus

JSON functions were added in MariaDB 10.2.3.

https://mariadb.com/kb/en/json_contains/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question