From 971fb642c156d753d85641b235c35333b2028ad5 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 14 Feb 2021 10:02:01 +0000 Subject: [PATCH] Remove pointless cast Signed-off-by: Graham --- archive/src/main/resources/org/openrs2/archive/V1__init.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/src/main/resources/org/openrs2/archive/V1__init.sql b/archive/src/main/resources/org/openrs2/archive/V1__init.sql index 69c48391..ae6dfa77 100644 --- a/archive/src/main/resources/org/openrs2/archive/V1__init.sql +++ b/archive/src/main/resources/org/openrs2/archive/V1__init.sql @@ -148,7 +148,7 @@ UNION ALL SELECT i.master_index_id, i.archive_id, ig.group_id, ig.name_hash, ig.version, c.data, c.key_id FROM i JOIN index_groups ig ON ig.container_id = i.container_id -JOIN groups g ON g.archive_id = i.archive_id::INTEGER AND g.group_id = ig.group_id AND ( +JOIN groups g ON g.archive_id = i.archive_id AND g.group_id = ig.group_id AND ( (g.version = ig.version AND NOT g.version_truncated) OR (g.version = ig.version & 65535 AND g.version_truncated) )