gameServer/OfficialServer/extdbinterface.hs
changeset 3901 124b4755914b
parent 2919 70244c730ea0
child 4242 5e3c5fe2cb14
--- a/gameServer/OfficialServer/extdbinterface.hs	Fri Sep 24 15:14:40 2010 -0400
+++ b/gameServer/OfficialServer/extdbinterface.hs	Sat Sep 25 23:01:52 2010 +0400
@@ -1,4 +1,4 @@
-{-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE ScopedTypeVariables, OverloadedStrings #-}
 
 module Main where
 
@@ -26,7 +26,7 @@
     case q of
         CheckAccount clUid clNick _ -> do
                 statement <- prepare dbConn dbQueryAccount
-                execute statement [SqlString $ clNick]
+                execute statement [SqlByteString $ clNick]
                 passAndRole <- fetchRow statement
                 finish statement
                 let response = 
@@ -47,7 +47,7 @@
 
 
 dbConnectionLoop mySQLConnectionInfo =
-    Control.Exception.handle (\(_ :: IOException) -> return ()) $ handleSqlError $
+    Control.Exception.handle (\(e :: IOException) -> hPutStrLn stderr $ show e) $ handleSqlError $
         bracket
             (connectMySQL mySQLConnectionInfo)
             (disconnect)