I have this json data in a 'name' column, where the names of some records are stored with multi-lang support:
{"en":"Professional Association","de":"Berufsverband","uk":null}
When I run this query returns 0 records:
select * from `some_table` where lower(json_value(name,'$.*')) like lower('%Berufsverband%');
But if I run the query specifying the lang key (de) it works:
select * from `some_table` where lower(json_value(name,'$.de')) like lower('%Berufsverband%');
My question is, how can I properly use the $.*
wildcard on MariaDB?
If I run the exact same query on MySQL it works fine:
select * from `some_table` where lower(json_unquote(name->'$.*')) like lower('%Berufsverband%');