Portability | portable |
---|---|
Stability | provisional |
Maintainer | John Goerzen <jgoerzen@complete.org> |
HDBC driver interface for ODBC 3.x
Written by John Goerzen, jgoerzen@complete.org
- connectODBC :: String -> IO Connection
- data Connection
Documentation
connectODBC :: String -> IO ConnectionSource
Connect to an ODBC server.
For information on the meaning of the passed string, please see:
http://msdn2.microsoft.com/en-us/library/ms715433(VS.85).aspx
An example string is:
"DSN=hdbctest1"
Important note for MySQL users:
Unless you are going to use InnoDB tables, you are strongly encouraged to set
Option = 262144
in your odbc.ini (for Unix users), or to disable transaction support in your DSN setup for Windows users.
If you fail to do this, the MySQL ODBC driver will incorrectly state that it supports transactions. dbTransactionSupport will incorrectly return True. commit and rollback will then silently fail. This is certainly NOT what you want. It is a bug (or misfeature) in the MySQL driver, not in HDBC.
You should ignore this advice if you are using InnoDB tables.