Closed tringuyenduc2903 closed 2 months ago
Hello @tringuyenduc2903
The only noticeable change that can link to that was the fact that we introduced the possibility to add mariadb
as a sql connection as that was handled by mysql
connection previously in Laravel 10.
I think it was you who asked for that, so I assume you are using it. Did you change any configuration of the mariadb connection that comes by default with Laravel ?
At first glance they seem pretty much the same:
If previously worked with mysql
, even if under the hood it used mariadb
, I don't think any changes we did could have affected that, unless you changed some configurations that we are not aware in your mariadb connection.
Let me know if that helps.
Cheers
I'm temporarily fixing it this way, but I still haven't found out the specific cause.
In the previous version, because MariaDB has not been added to the list, it can still work. Only MariaDB Currently, the error is on both MySQL and MariaDB
In vendor/backpack/crud/src/app/Models/Traits/HasRelationshipFields.php file
private static function isSqlConnection()
{
$instance = new static();
$driver = $instance->getConnection()->getConfig()['driver'];
$drivers = CRUD::getSqlDriverList();
$mariadb = array_search('mariadb', $drivers);
$mysql = array_search('mysql', $drivers);
unset(
$drivers[$mariadb],
$drivers[$mysql]
);
return in_array($driver, $drivers);
}
Hey @tringuyenduc2903 thanks for the report.
I see you are using FetchOperation
, and the issue reported here may be related with that fact, and not specifically with mariadb
.
I've just pushed a fix to PRO in 2.1.13 that adds varchar
and char
to the text column types. In previous versions those columns were converted to type string
by dbal.
A composer update
should get you the updated version.
Let me know if that works for you.
Cheers
Thanks for your effort, my issue has been resolved
Bug report
What I did
In Relationship field
or Select2 Ajax filter
What I expected to happen
Find 1 with 1 short paragraph ("C#") to get the list ("C# Progamming", "C# Course",...)
What happened
Quay phim màn hình từ 12-04-2024 22:50:45.webm
What I've already tried to fix it
Quay phim màn hình từ 12-04-2024 22:49:22.webm
Is it a bug in the latest version of Backpack?
After I run backpack
composer update backpack/crud
the error it still persistsBackpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is: