Add missing JOIN condition

Signed-off-by: Graham <gpe@openrs2.org>
master
Graham 3 years ago
parent d186f5aef4
commit 80dda3f2dc
  1. 2
      archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt

@ -181,7 +181,7 @@ public class CacheExporter @Inject constructor(
JOIN scopes sc ON sc.id = g.scope_id
JOIN environments e ON e.id = v.environment_id
JOIN languages l ON l.id = v.language_id
LEFT JOIN cache_stats cs ON cs.cache_id = c.id
LEFT JOIN cache_stats cs ON cs.scope_id = sc.id AND cs.cache_id = c.id
GROUP BY sc.name, c.id, g.name, e.name, l.iso_code, cs.valid_indexes, cs.indexes, cs.valid_groups,
cs.groups, cs.valid_keys, cs.keys, cs.size, cs.blocks
) t

Loading…
Cancel
Save