Hello community,
here is the log from the commit of package ghc-postgresql-libpq for
openSUSE:Factory checked in at 2017-01-31 12:44:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-postgresql-libpq (Old)
and /work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-postgresql-libpq"
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-postgresql-libpq/ghc-postgresql-libpq.changes
2016-11-02 12:47:18.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new/ghc-postgresql-libpq.changes
2017-02-03 17:39:41.899740080 +0100
@@ -1,0 +2,5 @@
+Wed Jan 18 09:00:27 UTC 2017 - [email protected]
+
+- Update to version 0.9.3.0 with cabal2obs.
+
+-------------------------------------------------------------------
Old:
----
postgresql-libpq-0.9.2.0.tar.gz
New:
----
postgresql-libpq-0.9.3.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-postgresql-libpq.spec ++++++
--- /var/tmp/diff_new_pack.2oJxL4/_old 2017-02-03 17:39:42.431664791 +0100
+++ /var/tmp/diff_new_pack.2oJxL4/_new 2017-02-03 17:39:42.431664791 +0100
@@ -1,7 +1,7 @@
#
# spec file for package ghc-postgresql-libpq
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%global pkg_name postgresql-libpq
Name: ghc-%{pkg_name}
-Version: 0.9.2.0
+Version: 0.9.3.0
Release: 0
Summary: Low-level binding to libpq
License: BSD-3-Clause
++++++ postgresql-libpq-0.9.2.0.tar.gz -> postgresql-libpq-0.9.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/postgresql-libpq-0.9.2.0/postgresql-libpq.cabal
new/postgresql-libpq-0.9.3.0/postgresql-libpq.cabal
--- old/postgresql-libpq-0.9.2.0/postgresql-libpq.cabal 2016-08-25
22:35:33.000000000 +0200
+++ new/postgresql-libpq-0.9.3.0/postgresql-libpq.cabal 2017-01-09
19:16:45.000000000 +0100
@@ -1,5 +1,5 @@
Name: postgresql-libpq
-Version: 0.9.2.0
+Version: 0.9.3.0
Synopsis: low-level binding to libpq
Description: This is a binding to libpq: the C application
@@ -54,4 +54,4 @@
source-repository this
type: git
location: http://github.com/lpsmith/postgresql-libpq
- tag: v0.9.2.0
+ tag: v0.9.3.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/postgresql-libpq-0.9.2.0/src/Database/PostgreSQL/LibPQ.hsc
new/postgresql-libpq-0.9.3.0/src/Database/PostgreSQL/LibPQ.hsc
--- old/postgresql-libpq-0.9.2.0/src/Database/PostgreSQL/LibPQ.hsc
2016-08-25 22:35:33.000000000 +0200
+++ new/postgresql-libpq-0.9.3.0/src/Database/PostgreSQL/LibPQ.hsc
2017-01-09 19:16:45.000000000 +0100
@@ -961,6 +961,7 @@
-- transfer started.
| CopyIn -- ^ Copy In (to server) data transfer
-- started.
+ | CopyBoth -- ^ Copy In/Out data transfer started.
| BadResponse -- ^ The server's response was not understood.
| NonfatalError -- ^ A nonfatal error (a notice or
-- warning) occurred.
@@ -977,6 +978,7 @@
toEnum (#const PGRES_TUPLES_OK) = TuplesOk
toEnum (#const PGRES_COPY_OUT) = CopyOut
toEnum (#const PGRES_COPY_IN) = CopyIn
+ toEnum (#const PGRES_COPY_BOTH) = CopyBoth
toEnum (#const PGRES_BAD_RESPONSE) = BadResponse
toEnum (#const PGRES_NONFATAL_ERROR) = NonfatalError
toEnum (#const PGRES_FATAL_ERROR) = FatalError
@@ -988,6 +990,7 @@
fromEnum TuplesOk = (#const PGRES_TUPLES_OK)
fromEnum CopyOut = (#const PGRES_COPY_OUT)
fromEnum CopyIn = (#const PGRES_COPY_IN)
+ fromEnum CopyBoth = (#const PGRES_COPY_BOTH)
fromEnum BadResponse = (#const PGRES_BAD_RESPONSE)
fromEnum NonfatalError = (#const PGRES_NONFATAL_ERROR)
fromEnum FatalError = (#const PGRES_FATAL_ERROR)
@@ -2113,10 +2116,13 @@
-- later call 'disableNoticeReporting' after calling this function.
enableNoticeReporting :: Connection -> IO ()
enableNoticeReporting conn@(Conn _ nbRef) = do
- nb' <- c_malloc_noticebuffer
- _ <- withConn conn $ \c -> c_PQsetNoticeReceiver c p_store_notices nb'
- nb <- swapMVar nbRef nb'
- c_free_noticebuffer nb
+ if isNullConnection conn
+ then return ()
+ else do
+ nb' <- c_malloc_noticebuffer
+ _ <- withConn conn $ \c -> c_PQsetNoticeReceiver c p_store_notices nb'
+ nb <- swapMVar nbRef nb'
+ c_free_noticebuffer nb
-- | This function retrieves any notices received from the backend.
-- Because multiple notices can be received at a time, you will