Skip to content

Commit

Permalink
fix caching queries with joins
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Jun 11, 2024
1 parent 4eadf3f commit 90d78e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver/CompilerCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected function hashSelectQuery(QueryParameters $params, array $tokens): stri
$hash .= $this->hashColumns($params, $tokens['columns']);

foreach ($tokens['join'] as $join) {
$hash .= 'j' . $join['alias'] . $join['type'];
$hash .= 'j' . $join['alias'] . \str_replace(['JOIN', ' '], '', $join['type']);

if ($join['outer'] instanceof SelectQuery) {
$hash .= $join['outer']->getPrefix() === null ? '' : 'p_' . $join['outer']->getPrefix();
Expand Down

0 comments on commit 90d78e9

Please sign in to comment.