HDBC-odbc 2.5.0.0 → 2.5.0.1
raw patch · 3 files changed
+12/−8 lines, 3 files
Files
- Database/HDBC/ODBC/Statement.hsc +3/−3
- HDBC-odbc.cabal +1/−1
- README.md +8/−4
Database/HDBC/ODBC/Statement.hsc view
@@ -252,9 +252,9 @@ peek prows --note: As of ODBC-3.52, the row count is only a C int, ie 32bit. -data BoundValue = BoundValue +data BoundValue = BoundValue { -- | Type of the value in the buffer - { bvValueType :: !(#{type SQLSMALLINT}) + bvValueType :: !(#{type SQLSMALLINT}) -- | Type of the SQL value to use if ODBC driver doesn't report one , bvDefaultColumnType :: !(#{type SQLSMALLINT}) , bvDefaultColumnSize :: !(#{type SQLULEN}) @@ -315,7 +315,7 @@ } hdbcTrace $ "bind SqlByteString " ++ show bs ++ ": " ++ show result return $! result - -- | This is rather hacky, I just replicate the behaviour of a previous version + -- This is rather hacky, I just replicate the behaviour of a previous version x -> do hdbcTrace $ "bind other " ++ show x bsResult <- bindSqlValue $ SqlByteString (fromSql x)
HDBC-odbc.cabal view
@@ -1,5 +1,5 @@ name: HDBC-odbc -version: 2.5.0.0 +version: 2.5.0.1 cabal-version: >=1.8 build-type: Simple license: BSD3
README.md view
@@ -10,10 +10,14 @@ 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> - connectODBC :: String -> IO Connection +> 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> + +> ```haskell +> connectODBC :: String -> IO Connection +> ``` + For example, you might use `connectODBC` as follows: