Skip to content

Commit c2931fb

Browse files
authored
fix: tablePrefix problem (#473)
1 parent 5fbaeb4 commit c2931fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Livewire/LivewireDatatable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public function resolveAdditionalSelects($column)
351351
return $selects->count() > 1
352352
? new Expression("CONCAT_WS('" . static::SEPARATOR . "' ," .
353353
collect($selects)->map(function ($select) {
354-
return "COALESCE($select, '')";
354+
return 'COALESCE(' . $this->tablePrefix . $select . ', \'\')';
355355
})->join(', ') . ')')
356356
: $selects->first();
357357
}

0 commit comments

Comments
 (0)