gameServer/OfficialServer/extdbinterface.hs
changeset 9427 c6c7e68de2a4
parent 9425 49eb707b9367
child 9435 59eec19cb31a
--- a/gameServer/OfficialServer/extdbinterface.hs	Sun Aug 25 21:43:47 2013 +0400
+++ b/gameServer/OfficialServer/extdbinterface.hs	Sun Aug 25 22:32:06 2013 +0400
@@ -24,7 +24,7 @@
 
 dbQueryAchievement =
     "INSERT INTO achievements (time, typeid, userid, value, filename, location) \
-    \ VALUES ((SELECT id FROM achievement_types WHERE name = ?), (SELECT uid FROM users WHERE name = ?), \
+    \ VALUES (?, (SELECT id FROM achievement_types WHERE name = ?), (SELECT uid FROM users WHERE name = ?), \
     \ ?, ?, ?)"
 
 dbInteractionLoop dbConn = forever $ do