Fix SELECT DISTINCT query

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent fc6e739879
commit 637e311a67
  1. 2
      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

Loading…
Cancel
Save