Skip to content

Commit

Permalink
Merge pull request #3146 from frknakk/master
Browse files Browse the repository at this point in the history
fix: mariadb support for scout search
  • Loading branch information
yajra committed May 23, 2024
2 parents b184950 + 9db53e2 commit 6f09499
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/QueryDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@ protected function applyFixedOrderingToQuery(string $keyName, array $orderedKeys
->map(fn ($value) => $connection->escape($value));

switch ($driverName) {
case 'mariadb':
case 'mysql':
$this->query->orderByRaw("FIELD($keyName, ".$orderedKeys->implode(',').')');

Expand Down

0 comments on commit 6f09499

Please sign in to comment.