@hackage HDBC-odbc2.2.3.2
ODBC driver for HDBC
Categories
License
LicenseRef-LGPL
Maintainer
John Goerzen <jgoerzen@complete.org>
Links
- Homepage
- Documentation
- No source repository
- Security
Versions
Installation
Dependencies (5)
- HDBC >=2.1.0
- base >=4 && <5
- bytestring
- mtl
- utf8-string Show all…
Dependents (11)
@hackage/MetaHDBC, @hackage/weekdaze, @hackage/persistent-odbc, @hackage/ampersand, @hackage/haskelldb-hdbc-odbc, @hackage/HXQ, Show all…
Package Flags
buildtests
(off by default)
Build the executable to run unit tests
Welcome to HDBC, Haskell Database Connectivity.
This package provides a database backend driver for ODBC. You should be able to use any ODBC front-end with it.
Please see HDBC itself for documentation on use.
This package provides one function in module Database.HDBC.ODBC:
{- | Connect to an ODBC server.
For information on the meaning of the passed string, please see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcsqldrivers.asp
An example string is:
"DSN=hdbctest1"
-} connectODBC :: String -> IO Connection
DIFFERENCES FROM HDBC STANDARD
None known at this time.
MYSQL NOTE
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.