From d885039b222c804d8d1fd4d9f1a0d4c84aeefa05 Mon Sep 17 00:00:00 2001 From: Shane Burrell Date: Tue, 29 Mar 2022 16:53:28 -0400 Subject: [PATCH] The backtick on the sort string doesn't seem to work on sqlserv and doesn't seem to be required for postgres. --- src/Http/Livewire/LivewireDatatable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Livewire/LivewireDatatable.php b/src/Http/Livewire/LivewireDatatable.php index a85ee2bf..0ea0279f 100644 --- a/src/Http/Livewire/LivewireDatatable.php +++ b/src/Http/Livewire/LivewireDatatable.php @@ -726,7 +726,7 @@ public function getSortString() default: return $dbTable == 'pgsql' || $dbTable == 'sqlsrv' ? new Expression('"' . $column['name'] . '"') - : new Expression('`' . $column['name'] . '`'); + : new Expression("'" . $column['name'] . "'"); break; } }