Adapt to changes in Postgres 9.3

This commit is contained in:
Petr Písař 2014-01-29 15:24:13 +01:00
parent 95ead3fd15
commit afc01c8261
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From accf9a11bab7de2d11a36bdaa01e2e438dd33104 Mon Sep 17 00:00:00 2001
From: Erik Rijkers <er@xs4all.nl>
Date: Fri, 17 May 2013 22:09:41 -0400
Subject: [PATCH] Use DEBUG1 for the PrintWarn test, as Postgres got less
chatty in 9.3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Petr Pisar: Removed Changes
diff --git a/t/02attribs.t b/t/02attribs.t
index e98add9..197d962 100644
--- a/t/02attribs.t
+++ b/t/02attribs.t
@@ -251,7 +251,7 @@ is ($value, 1, $t);
local $SIG{__WARN__} = sub { $warning = shift; };
-$dbh->do(q{SET client_min_messages = 'NOTICE'});
+$dbh->do(q{SET client_min_messages = 'DEBUG1'});
$t='DB handle attribute "PrintWarn" works when on';
$warning = q{};
eval {
--
1.8.5.3

View File

@ -1,10 +1,13 @@
Name: perl-DBD-Pg
Summary: A PostgreSQL interface for perl
Version: 2.19.3
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/DBD-Pg-%{version}.tar.gz
# Adapt to changes in Postgres 9.3, in upstream after 2.19.3, bug #1058723,
# CPAN RT#88865
Patch0: DBD-Pg-2.19.3-Use-DEBUG1-for-the-PrintWarn-test-as-Postgres-got-le.patch
URL: http://search.cpan.org/dist/DBD-Pg/
BuildRequires: perl(Carp)
@ -54,6 +57,7 @@ to PostgreSQL databases.
%prep
%setup -q -n DBD-Pg-%{version}
%patch0 -p1
# Move testme.tmp.pl into tests sub-package
mv testme.tmp.pl t/
sed -i -e '/^testme.tmp.pl$/ s/^/t\//' MANIFEST
@ -87,6 +91,9 @@ make test
%changelog
* Wed Jan 29 2014 Petr Pisar <ppisar@redhat.com> - 2.19.3-6
- Adapt to changes in Postgres 9.3 (bug #1058723)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.19.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild