Postgres throws "undefined column" when using searchable in tables
Using Postgres 17, Filament v4.2.0, Laravel v12.37.0, Livewire v3.6.4, PHP 8.4.11.
I'm getting an
Undefined column error from Postgres when i use searchable on my table.
Here's a simplified version of the table;
When i search something (john in this case), this results in the following query:
And (understandably) this error
I found that adding a driver check in the generate_search_column_expression helper method fixes it for me. It makes sure that for postgres it always returns an expression, never a string. I'm not sure if this is a good solution tho.
https://github.com/filamentphp/filament/blob/4.x/packages/support/src/helpers.php#L294
Am i doing something wrong or is there another solution?0 Replies