postgresql-simple v0.5.3.0 Release Notes

Release Date: 2017-05-15 // almost 7 years ago
    • Refactored some rudimentary cursor handling code out of the implementation of the fold operators, into a new Database.PostgreSQL.Simple.Cursor module, thanks to Bardur Arantsson.

    • Made the FromField instance for Char compatible with postgresql's bpchar type. Thanks to Ivan Lazar Miljenovic for reporting the issue.

    • Added Show and Eq instances for Notification, thanks to Matvey Aksenov.

    • Fixed some example code, thanks to Matvey Aksenov.

    • Fixed a problem with using conversionError to throw exceptions of type SomeException. Previously, the exception would be wrapped in a second SomeException dynamic constructor which would cause normal GHC typecase idioms over SomeException to fail.


Previous changes from v0.5.2.1

    • 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.