Don't compare time value with itself
authorunc0rr
Sat, 27 Feb 2016 18:15:53 +0300
changeset 11579 d389ea7ca66f
parent 11578 013264e25d71
child 11580 c8edd93b970f
Don't compare time value with itself
gameServer/OfficialServer/extdbinterface.hs
--- a/gameServer/OfficialServer/extdbinterface.hs	Sat Feb 27 18:02:24 2016 +0300
+++ b/gameServer/OfficialServer/extdbinterface.hs	Sat Feb 27 18:15:53 2016 +0300
@@ -64,7 +64,7 @@
 
 dbQueryReplayFilename = "SELECT filename FROM achievements WHERE id = ?"
 
-dbQueryBestTime = "SELECT MIN(value) FROM achievements WHERE location = ?"
+dbQueryBestTime = "SELECT MIN(value) FROM achievements WHERE location = ? AND id <> (SELECT MAX(id) FROM achievements)"
 
 dbInteractionLoop dbConn = forever $ do
     q <- liftM read getLine