hsql-odbc 1.8.1.1 → 1.8.2
raw patch · 4 files changed
+9/−11 lines, 4 filesdep ~hsqlPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: hsql
API changes (from Hackage documentation)
- DB.HSQL.ODBC.Type: type SQL = String
+ DB.HSQL.ODBC.Functions: sqlAttrCursorType :: Integer
+ DB.HSQL.ODBC.Functions: sqlAttrRowArraySize :: Integer
+ DB.HSQL.ODBC.Functions: sqlCursorStatic :: Integer
+ DB.HSQL.ODBC.Functions: sqlIsInteger :: Integer
+ DB.HSQL.ODBC.Type: sqlBigint :: Integer
+ DB.HSQL.ODBC.Type: sqlBinary :: Integer
+ DB.HSQL.ODBC.Type: sqlBit :: Integer
+ DB.HSQL.ODBC.Type: sqlChar :: Integer
+ DB.HSQL.ODBC.Type: sqlDate :: Integer
+ DB.HSQL.ODBC.Type: sqlDecimal :: Integer
+ DB.HSQL.ODBC.Type: sqlDouble :: Integer
+ DB.HSQL.ODBC.Type: sqlFloat :: Integer
+ DB.HSQL.ODBC.Type: sqlInteger :: Integer
+ DB.HSQL.ODBC.Type: sqlLongVarBinary :: Integer
+ DB.HSQL.ODBC.Type: sqlLongVarChar :: Integer
+ DB.HSQL.ODBC.Type: sqlNumeric :: Integer
+ DB.HSQL.ODBC.Type: sqlReal :: Integer
+ DB.HSQL.ODBC.Type: sqlSmallint :: Integer
+ DB.HSQL.ODBC.Type: sqlTime :: Integer
+ DB.HSQL.ODBC.Type: sqlTimestamp :: Integer
+ DB.HSQL.ODBC.Type: sqlTinyInt :: Integer
+ DB.HSQL.ODBC.Type: sqlVarBinary :: Integer
+ DB.HSQL.ODBC.Type: sqlVarChar :: Integer
+ DB.HSQL.ODBC.Type: sqlWChar :: Integer
+ DB.HSQL.ODBC.Type: sqlWLongVarChar :: Integer
+ DB.HSQL.ODBC.Type: sqlWVarChar :: Integer
Files
- DB/HSQL/ODBC/Core.hsc +5/−5
- DB/HSQL/ODBC/Type.hsc +0/−2
- Database/HSQL/ODBC.hs +2/−2
- hsql-odbc.cabal +2/−2
DB/HSQL/ODBC/Core.hsc view
@@ -49,7 +49,7 @@ -- | -getFieldDefs:: HSTMT -> Ptr a -> SQLUSMALLINT -> SQLUSMALLINT -> IO [FieldDef]+getFieldDefs:: HSTMT -> Ptr a -> SQLUSMALLINT -> SQLUSMALLINT -> IO [ColDef] getFieldDefs hSTMT pFIELD n count | n > count = return [] | otherwise = do@@ -72,7 +72,7 @@ -- | -moveToFirstResult :: HSTMT -> Ptr a -> IO [FieldDef]+moveToFirstResult :: HSTMT -> Ptr a -> IO [ColDef] moveToFirstResult hSTMT pFIELD = do res <- sqlNumResultCols hSTMT ((#ptr FIELD, fieldsCount) pFIELD) handleSqlResult sqlHandleStmt hSTMT res@@ -126,7 +126,7 @@ | res == sqlInvalidHandle = throw SqlInvalidHandle | res == sqlStillExecuting = throw SqlStillExecuting- | res == sqlNeedData = throw SqlNeedData+ | res == sqlNeedData = throw SqlNeedMoreData | res == sqlError = do getSqlError >>= throw | otherwise = error (show res)@@ -139,7 +139,7 @@ res <- sqlGetDiagRec handleType handle 1 pState pNative pMsg 256 pTextLen if res == sqlNoData- then return SqlNoData+ then return SqlNoMoreData else do state <- peekCString pState native <- peek pNative@@ -154,7 +154,7 @@ -- |-getColValue :: HSTMT -> CString -> Int -> FieldDef -> (FieldDef -> CString -> Int -> IO a) -> IO a+getColValue :: HSTMT -> CString -> Int -> ColDef -> (ColDef -> CString -> Int -> IO a) -> IO a getColValue hSTMT buffer colNumber fieldDef f = do (res,len_or_ind) <- getData buffer (fromIntegral stmtBufferSize) if len_or_ind == sqlNullData
DB/HSQL/ODBC/Type.hsc view
@@ -23,8 +23,6 @@ type SQLLEN = SQLINTEGER type SQLULEN = SQLINTEGER -type SQL = String- -- | mkSqlType :: SQLSMALLINT -> SQLULEN -> SQLSMALLINT -> SqlType mkSqlType sqlChar size _ = SqlChar (fromIntegral size)
Database/HSQL/ODBC.hs view
@@ -20,7 +20,7 @@ import Control.Concurrent.MVar(newMVar) import System.IO.Unsafe(unsafePerformIO) -import DB.HSQL.ODBC.Type(HDBC,SQLRETURN,HENV,HENVRef,mkSqlType,SQL)+import DB.HSQL.ODBC.Type(HDBC,SQLRETURN,HENV,HENVRef,mkSqlType) import DB.HSQL.ODBC.Functions import DB.HSQL.ODBC.Core(handleSqlResult,withStatement) @@ -144,7 +144,7 @@ odbcDescribe :: Connection -> HDBC -- ^ ODBC handle -> String -- ^ table name- -> IO [FieldDef]+ -> IO [ColDef] odbcDescribe connection hDBC table = do stmt <- withStatement connection hDBC (odbcSqlColumns table) collectRows getColumnInfo stmt
hsql-odbc.cabal view
@@ -1,5 +1,5 @@ name: hsql-odbc-version: 1.8.1.1+version: 1.8.2 Synopsis: A Haskell Interface to ODBC. license: BSD3 License-file: LICENSE@@ -13,7 +13,7 @@ DB.HSQL.ODBC.Functions DB.HSQL.ODBC.Status DB.HSQL.ODBC.Core-build-depends: base >= 4 && < 5, hsql >= 1.8, old-time >= 1.0.0.1+build-depends: base >= 4 && < 5, hsql >= 1.8.2, old-time >= 1.0.0.1 extensions: ForeignFunctionInterface, CPP include-dirs: Database/HSQL c-sources: Database/HSQL/HsODBC.c