From 90d78e9104ad499cbf3287a4c636ed2588c3c4fc Mon Sep 17 00:00:00 2001 From: Maxim Smakouz Date: Tue, 11 Jun 2024 11:06:45 +0300 Subject: [PATCH] fix caching queries with joins --- src/Driver/CompilerCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Driver/CompilerCache.php b/src/Driver/CompilerCache.php index 2968a3d2..7960ef30 100644 --- a/src/Driver/CompilerCache.php +++ b/src/Driver/CompilerCache.php @@ -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();