Skip to content

Commit

Permalink
Added mariadb support for scout search
Browse files Browse the repository at this point in the history
  • Loading branch information
frknakk authored May 23, 2024
1 parent b184950 commit 9db53e2
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 9db53e2

Please sign in to comment.