--- 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