ScientaNL / DoctrineJsonFunctions

Doctrine DQL functions for SQL JSON data type
MIT License
524 stars 48 forks source link

JSON_EXTRACT missing in MariaDB #116

Open igoooor opened 1 month ago

igoooor commented 1 month ago

I can use JSON_EXTRACT in MariaDB, but the package here does not seem to support it since I updated to symfony 7 & doctrine/dbal 4

I'm not sure what additional information I could provide to help debug that. But also on the README of the project, JSON_EXTRACT is not listed in the MariaDB column.

igoooor commented 1 month ago

I think some others might be missing, I could find a lot in https://mariadb.com/kb/en/json-functions/

victor-prdh commented 3 weeks ago

You can use Scienta\DoctrineJsonFunctions\Query\AST\Functions\Mysql\JsonExtract with mariaDB too !

Btw, that's not the only one that will work with both.

igoooor commented 3 weeks ago

Sorry if I was not clear in my initial message, but that's what I mean, it does not work with my setup, it gives me the following error: Operation "JSON_EXTRACT" is not supported by platform. Here are some more info on my setup:

victor-prdh commented 2 weeks ago

Hey, sorry for the delay.

I created this small test: https://github.com/victor-prdh/test-maria.

It's working well for me. Do you have a small reproducer by any chance?