mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Simplify sqlite query
This commit is contained in:
parent
d8d672c4c1
commit
ffbde46180
|
@ -263,7 +263,7 @@ trait Searchable
|
|||
$driver = config('database.connections.' . config('database.default') . '.driver');
|
||||
|
||||
if ($driver === 'sqlite') {
|
||||
return implode(" || ' ' || ", $columns) . ' LIKE ?';
|
||||
return implode("||' '||", $columns) . ' LIKE ?';
|
||||
}
|
||||
|
||||
return 'CONCAT(' . implode('," ",', $columns) . ') LIKE ?';
|
||||
|
|
Loading…
Reference in a new issue