HDBC-odbc- ODBC driver for HDBC

MaintainerJohn Goerzen <jgoerzen@complete.org>



HDBC driver interface for ODBC 3.x

Written by John Goerzen, jgoerzen@complete.org



connectODBC :: String -> IO ConnectionSource

Connect to an ODBC server.



An example string is:


This, and all other functions that use ODBC directly or indirectly, can raise SqlErrors just like other HDBC backends. The seErrorMsg field is specified as a String in HDBC. ODBC specifies this data as a list of strings. Therefore, this driver uses show on the data from ODBC. For friendly display, or handling of individual component messages in your code, you can use read on the seErrorMsg field in a context that expects [String].

Important note for MySQL users:


Option = 262144



You should ignore this advice if you are using InnoDB tables.