Skip to content

Commit

Permalink
Merge pull request #435 from shaneburrell/master
Browse files Browse the repository at this point in the history
The backtick on the sort string for sqlserv breaks query.
  • Loading branch information
thyseus authored Apr 4, 2022
2 parents 379227c + d885039 commit 141b6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Livewire/LivewireDatatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ public function getSortString()
default:
return $dbTable == 'pgsql' || $dbTable == 'sqlsrv'
? new Expression('"' . $column['name'] . '"')
: new Expression('`' . $column['name'] . '`');
: new Expression("'" . $column['name'] . "'");
break;
}
}
Expand Down

0 comments on commit 141b6fd

Please sign in to comment.