mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update helpers.php
This commit is contained in:
@@ -171,19 +171,14 @@ if (! function_exists('Filament\Support\generate_search_column_expression')) {
|
||||
}
|
||||
|
||||
$column = match ($driverName) {
|
||||
'pgsql' => str($column)->contains('->')
|
||||
? str($column)
|
||||
->beforeLast('->')
|
||||
->append('->>')
|
||||
->append("'")
|
||||
->append(str($column)->afterLast('->'))
|
||||
->append("'")
|
||||
: $column,
|
||||
default => $column,
|
||||
};
|
||||
|
||||
$column = match ($driverName) {
|
||||
'pgsql' => "{$column}::text",
|
||||
'pgsql' => (str($column)->contains('->')
|
||||
? str($column)
|
||||
->beforeLast('->')
|
||||
->append('->>')
|
||||
->append("'")
|
||||
->append(str($column)->afterLast('->'))
|
||||
->append("'")
|
||||
: $column) . '::text',
|
||||
default => $column,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user