fix: Select ignores query

This commit is contained in:
DaRacci committed 2022-10-10 15:00:45 +11:00
1 parent 8edf547a1b
commit dd3335b99c
1 file changed
+9 -1
@@ -1 +1,9 @@
SELECT ignoredplayer FROM carbon_ignores WHERE (id = UNHEX(REPLACE(:id, '-', '')));
SELECT
LOWER(CONCAT(
LEFT(HEX(ignoredplayer), 8), '-',
MID(HEX(ignoredplayer), 9, 4), '-',
MID(HEX(ignoredplayer), 13, 4), '-',
MID(HEX(ignoredplayer), 17, 4), '-',
RIGHT(HEX(ignoredplayer), 12)
)) AS ignoredplayer
FROM carbon_ignores WHERE (id = UNHEX(REPLACE(:id, '-', '')));