postgresql-simple

Mid-Level PostgreSQL client library

Version on this page:0.5.2.1
LTS Haskell 22.18:0.7.0.0@rev:1
Stackage Nightly 2024-04-24:0.7.0.0@rev:1
Latest on Hackage:0.7.0.0@rev:1

See all snapshots postgresql-simple appears in

BSD-3-Clause licensed by Bryan O'Sullivan, Leon P Smith
Maintained by Leon P Smith
This version can be pinned in stack with:postgresql-simple-0.5.2.1@sha256:31e69cad1b6e850b97f9b829a85802fedcee2b5a00496b057d2e9f41a2067a40,3580

Module documentation for 0.5.2.1

  • Database
    • Database.PostgreSQL
      • Database.PostgreSQL.Simple
        • Database.PostgreSQL.Simple.Arrays
        • Database.PostgreSQL.Simple.Copy
        • Database.PostgreSQL.Simple.Errors
        • Database.PostgreSQL.Simple.FromField
        • Database.PostgreSQL.Simple.FromRow
        • Database.PostgreSQL.Simple.HStore
          • Database.PostgreSQL.Simple.HStore.Internal
        • Database.PostgreSQL.Simple.Internal
        • Database.PostgreSQL.Simple.LargeObjects
        • Database.PostgreSQL.Simple.Notification
        • Database.PostgreSQL.Simple.Ok
        • Database.PostgreSQL.Simple.Range
        • Database.PostgreSQL.Simple.SqlQQ
        • Database.PostgreSQL.Simple.Time
          • Database.PostgreSQL.Simple.Time.Internal
        • Database.PostgreSQL.Simple.ToField
        • Database.PostgreSQL.Simple.ToRow
        • Database.PostgreSQL.Simple.Transaction
        • Database.PostgreSQL.Simple.TypeInfo
          • Database.PostgreSQL.Simple.TypeInfo.Macro
          • Database.PostgreSQL.Simple.TypeInfo.Static
        • Database.PostgreSQL.Simple.Types

Mid-Level PostgreSQL client library, forked from mysql-simple.

Changes

For the full changelog, see https://github.com/lpsmith/postgresql-simple/blob/master/CHANGES.md

Version 0.5.2.1 (2016-06-29)

  • Bumped the lower bound for base to 4.6. Thanks to Herbert Valerio Riedel for reporting the issue.

  • Added an Eq instance for SqlError, thanks to Chris Allen

  • Fixed a bug where a all-caps "NULL" text value inside a postgresql array would get parsed as the SQL null value. Thanks goes to Edgar Gomes and Silk for finding and fixing this mistake.

  • Modified withTransaction and friends to ignore IOErrors when attempting to roll back the transaction. This fixes a buggy interaction between withTransaction and async exceptions (e.g. System.Timeout) on unix platforms. Thanks goes to Erik Hesselink and Silk for providing the test case that exposed this issue.

  • Added the testTimeout regression test for the problem above.