From 637e311a6774aff490af15b8c6d66f5af1327039 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 19 Jun 2021 09:48:41 +0100 Subject: [PATCH] Fix SELECT DISTINCT query Signed-off-by: Graham --- archive/src/main/kotlin/org/openrs2/archive/key/KeyExporter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/src/main/kotlin/org/openrs2/archive/key/KeyExporter.kt b/archive/src/main/kotlin/org/openrs2/archive/key/KeyExporter.kt index d5b8a593..563dd777 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/key/KeyExporter.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/key/KeyExporter.kt @@ -150,7 +150,7 @@ public class KeyExporter @Inject constructor( """.trimIndent() private val EXPORT_VALID_QUERY = """ - SELECT DISTINCT (k.key).k0, (k.key).k1, (k.key).k2, (k.key).k3 + SELECT DISTINCT (k.key).k0, (k.key).k1, (k.key).k2, (k.key).k3, k.id FROM keys k JOIN containers c ON c.key_id = k.id ORDER BY k.id ASC