Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The MariaDB JSON functions are no longer processed #117

Open
konmedia-devops opened this issue Jun 17, 2024 · 1 comment
Open

The MariaDB JSON functions are no longer processed #117

konmedia-devops opened this issue Jun 17, 2024 · 1 comment

Comments

@konmedia-devops
Copy link

The MariaDB JSON functions are no longer processed as of doctrine/dbal:4.0 because the platform abstraction has changed there.

\Scienta\DoctrineJsonFunctions\Query\AST\Functions\Mariadb\MariadbJsonFunctionNode::validatePlatform

The class mentioned checks for the MySQLPlatform. However, MariaDb now only belongs to it in an abstract way. It would have to check for AbstractMySQLPlatform.

@ErykBabayan
Copy link

ErykBabayan commented Sep 16, 2024

Why doesn't this package have some JSON functions that have afaik same syntax as in MySQL. JSON_LENGTH or JSON_CONTAINS for example ?

I did a quick fix and what I did is to copy-paste whole classes and link it in doctrine.yaml config if you're using Symfony. They need to extend from MariaDbJsonFunctionNode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants