
Ok, I am evaluating HDBC. I wrote a simple test program: import Database.HDBC import Database.HDBC.PostgreSQL main = do db <- connectPostgreSQL "dbname=Test user=postgres password='mypass'" putStrLn "done" when I run it I get the following error: db: exception :: Database.HDBC.SqlError Can I get a more specific error? Is there a way to inspect this exception more deeply? thanks, -g. -- http://www.me.gr http://phidz.com http://blog.gmosx.com http://cull.gr http://www.joy.gr http://nitroproject.org

Ok, I am evaluating HDBC. I wrote a simple test program: ... Can I get a more specific error? Is there a way to inspect this exception more deeply?
handleSqlError does the trick, for other newbies: main = handleSqlError $ do dbc <- connectPostgreSQL "dbname=test user=postgres password=,psql51e" putStrLn "done" Everything works ok now, I cann access my psql database and run basic sql queries/updates. -g. -- http://www.me.gr http://phidz.com http://blog.gmosx.com http://cull.gr http://www.joy.gr http://nitroproject.org
participants (1)
-
George Moschovitis