hsql-postgresql 1.8.1 → 1.8.2
raw patch · 4 files changed
+33/−6 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.PG.Core: getColValue :: PGresult -> MVar Int -> Int -> Int -> FieldDef -> (FieldDef -> CString -> Int -> IO a) -> IO a
+ DB.HSQL.PG.Core: getColValue :: PGresult -> MVar Int -> Int -> Int -> ColDef -> (ColDef -> CString -> Int -> IO a) -> IO a
Files
- DB/HSQL/PG/Core.hs +3/−3
- Database/HSQL/PostgreSQL.hs +1/−1
- PostgreSQL.buildinfo +27/−0
- hsql-postgresql.cabal +2/−2
DB/HSQL/PG/Core.hs view
@@ -76,11 +76,11 @@ (\index -> return (index+1,index < countTuples-1)) -- |-getColValue :: PGresult -> MVar Int -> Int -> Int -> FieldDef - -> (FieldDef -> CString -> Int -> IO a) -> IO a+getColValue :: PGresult -> MVar Int -> Int -> Int -> ColDef + -> (ColDef -> CString -> Int -> IO a) -> IO a getColValue pRes tupleIndex countTuples colNumber fieldDef f = do index <- readMVar tupleIndex- when (index >= countTuples) (throw SqlNoData)+ when (index >= countTuples) (throw SqlNoMoreData) isnull <- pqGetisnull pRes index colNumber if isnull == 1 then f fieldDef nullPtr 0
Database/HSQL/PostgreSQL.hs view
@@ -105,7 +105,7 @@ collectRows (\s -> getFieldValue s 0 ("relname", SqlVarChar 0, False) "") stmt - describe :: Connection -> PGconn -> String -> IO [FieldDef]+ describe :: Connection -> PGconn -> String -> IO [ColDef] describe connection pConn table = do stmt <- query connection pConn (sqlAllFieldDefsForTableName table)
+ PostgreSQL.buildinfo view
@@ -0,0 +1,27 @@+buildable: True+build-tools:+cpp-options:+cc-options:+ld-options:+pkgconfig-depends:+frameworks:+c-sources:+default-language:+other-languages:+default-extensions:+other-extensions:+extensions:+extra-libraries:+extra-lib-dirs: /usr/lib+includes:+install-includes:+include-dirs: /usr/include/postgresql+ /usr/include/postgresql/9.1/server+hs-source-dirs:+other-modules:+ghc-prof-options:+ghc-shared-options:+ghc-options:+hugs-options:+nhc98-options:+jhc-options:
hsql-postgresql.cabal view
@@ -1,5 +1,5 @@ Name: hsql-postgresql-Version: 1.8.1+Version: 1.8.2 Synopsis: A Haskell Interface to PostgreSQL via the PQ library. License: BSD3 License-file: LICENSE@@ -13,7 +13,7 @@ DB.HSQL.PG.Type, DB.HSQL.PG.Functions, Database.HSQL.PostgreSQL-Build-depends: base >= 4 && <5, hsql >= 1.8 && < 1.9, old-time+Build-depends: base >= 4 && <5, hsql >= 1.8.2 && < 1.9, old-time Maintainer: nick.rudnick@googlemail.com -- Extensions: Build-Type: Custom