We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 167e2aa commit 0090df4Copy full SHA for 0090df4
src/QueryDataTable.php
@@ -637,7 +637,7 @@ protected function getSelectedColumns($query): array
637
];
638
639
foreach ($q->columns ?? [] as $select) {
640
- $sql = trim((string) $select instanceof Expression ? $select->getValue($this->getConnection()->getQueryGrammar()) : $select);
+ $sql = trim($select instanceof Expression ? $select->getValue($this->getConnection()->getQueryGrammar()) : (string) $select);
641
// Remove expressions
642
$sql = preg_replace('/\s*\w*\((?:[^()]*|(?R))*\)/', '_', $sql);
643
// Remove multiple spaces
0 commit comments