From: Justin B. <jgb...@gm...> - 2009-03-20 00:04:21
|
Check out handleSql on the HDBC documentation http://hackage.haskell.org/packages/archive/HDBC/2.1.0/doc/html/Database-HDBC.html#v%3AhandleSql On Thu, Mar 19, 2009 at 5:00 PM, Dean Michael Berris <mik...@gm...> wrote: > On Fri, Mar 20, 2009 at 7:06 AM, Justin Bailey <jgb...@gm...> wrote: >> You may be able to use the error handling provided by the underlying >> library. However, that may not work. You may have more luck using >> HaskellDB to generate SQL for you, which you execute directly using >> your DB provider. That's how I've used it in the past, at least. >> > > Hmmm... not quite the answer I was looking for... But at any rate, the > program does exit with an SqlError -- I'm using the HDBC.ODBC backend, > is there a way for me to inspect that object properly at some point in > the program? > > -- > Dean Michael Berris | Software Engineer, Friendster, Inc. > blog.cplusplus-soup.com | twitter.com/mikhailberis | > linkedin.com/in/mikhailberis | profiles.friendster.com/mikhailberis | > deanberris.com > |