Skip to content

Commit 6c05803

Browse files
fix: prevent prefixing null/empty string
1 parent 8f5c8b1 commit 6c05803

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/QueryDataTable.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,12 @@ protected function addTablePrefix($query, string $column): string
485485
}
486486
}
487487

488+
if (! ($prefix = $this->getTablePrefix($query))) {
489+
return $column;
490+
}
491+
488492
// Add table prefix to column
489-
return $this->getTablePrefix($query).'.'.$column;
493+
return $prefix.'.'.$column;
490494
}
491495

492496
/**

0 commit comments

Comments
 (0)