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

Is MariaDB supported now? #239

Closed
Fossil01 opened this issue Nov 25, 2019 · 3 comments
Closed

Is MariaDB supported now? #239

Fossil01 opened this issue Nov 25, 2019 · 3 comments

Comments

@Fossil01
Copy link

I looked at old issues but couldn't find a definitive answer. Is MariaDB supported now in this package?

I'm running MariaDB 10.4.10

@freekmurze
Copy link
Member

If MariaDB supports the same JSON function as MySQL then the answer is yes.

@Fossil01
Copy link
Author

It doesn't, but I found numerous issues/PR's with possible changes to support both. What's the reason these are ignored?

@JJCLane
Copy link

JJCLane commented Jul 6, 2020

I'm facing an issue with MariaDB json types and collations. The query works if you manually specify the collation e.g.

select * from tagswhere JSON_UNQUOTE( JSON_EXTRACT('name', '$."en"') ) collate utf8_unicode_ci like '%fish%'

Otherwise I receive the error: #1267 - Illegal mix of collations (utf8_general_ci,COERCIBLE) and (utf8_unicode_ci,COERCIBLE) for operation 'like'. The only way I've found to do that reliably is to update the wrapJsonSelector function in vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\MySqlGrammar.php which is obviously not a solution.

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

3 participants