Skip to content

Commit

Permalink
fix: ORA 904 when using join
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed Aug 11, 2024
1 parent 66770fb commit 7076141
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Oci8/Query/Grammars/OracleGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ protected function compileTableExpression($sql, $constraint, $query)
$table = last(explode(' ', $this->wrapTable($query->from)));
}

if (count($query->columns) > 1) {
$query->columns = ['*'];
}

$select = $this->compileColumns($query, $query->columns);

// Apply ROW_NUMBER() for pagination
Expand Down

0 comments on commit 7076141

Please sign in to comment.