Hello community, here is the log from the commit of package perl-DBD-Pg for openSUSE:Factory checked in at 2020-02-09 21:01:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-DBD-Pg (Old) and /work/SRC/openSUSE:Factory/.perl-DBD-Pg.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DBD-Pg" Sun Feb 9 21:01:57 2020 rev:44 rq:770043 version:3.10.4 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-DBD-Pg/perl-DBD-Pg.changes 2020-01-24 14:20:36.698607694 +0100 +++ /work/SRC/openSUSE:Factory/.perl-DBD-Pg.new.26092/perl-DBD-Pg.changes 2020-02-09 21:02:18.255349697 +0100 @@ -1,0 +2,18 @@ +Tue Feb 4 03:09:09 UTC 2020 - <timueller+p...@suse.de> + +- updated to 3.10.4 + see /usr/share/doc/packages/perl-DBD-Pg/Changes + + + Version 3.10.4 (released February 3, 2020) + + - Allow localtime from Time::Piece to be used directly as a bind value again. + This applies to all "magical" arrays. + [Greg Sabino Mullane] + [Github issue #63] + + - Force tests to NOT run in parallel. + [Greg Sabino Mullane] + [RT #130834] + +------------------------------------------------------------------- Old: ---- DBD-Pg-3.10.3.tar.gz New: ---- DBD-Pg-3.10.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-DBD-Pg.spec ++++++ --- /var/tmp/diff_new_pack.mH0SVn/_old 2020-02-09 21:02:18.935350083 +0100 +++ /var/tmp/diff_new_pack.mH0SVn/_new 2020-02-09 21:02:18.939350085 +0100 @@ -17,7 +17,7 @@ Name: perl-DBD-Pg -Version: 3.10.3 +Version: 3.10.4 Release: 0 %define cpan_name DBD-Pg Summary: PostgreSQL database driver for the DBI module ++++++ DBD-Pg-3.10.3.tar.gz -> DBD-Pg-3.10.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/Changes new/DBD-Pg-3.10.4/Changes --- old/DBD-Pg-3.10.3/Changes 2020-01-20 21:49:37.000000000 +0100 +++ new/DBD-Pg-3.10.4/Changes 2020-02-03 18:08:44.000000000 +0100 @@ -1,7 +1,20 @@ + +Version 3.10.4 (released February 3, 2020) + + - Allow localtime from Time::Piece to be used directly as a bind value again. + This applies to all "magical" arrays. + [Greg Sabino Mullane] + [Github issue #63] + + - Force tests to NOT run in parallel. + [Greg Sabino Mullane] + [RT #130834] + + Version 3.10.3 (released January 20, 2020) - Set things cleared via PQclear to NULL as soon as possible, to remove race conditions. + - Set things cleared via PQclear to NULL as soon as possible, to remove race conditions. [Greg Sabino Mullane] [RT #131522] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/META.yml new/DBD-Pg-3.10.4/META.yml --- old/DBD-Pg-3.10.3/META.yml 2020-01-20 19:19:19.000000000 +0100 +++ new/DBD-Pg-3.10.4/META.yml 2020-01-21 21:04:32.000000000 +0100 @@ -1,6 +1,6 @@ --- #YAML:1.0 name : DBD-Pg -version : 3.10.3 +version : 3.10.4 abstract : DBI PostgreSQL interface author: - Greg Sabino Mullane <g...@turnstep.com> @@ -30,10 +30,10 @@ provides: DBD::Pg: file : Pg.pm - version : 3.10.3 + version : 3.10.4 Bundle::DBD::Pg: file : lib/Bundle/DBD/Pg.pm - version : 3.10.3 + version : 3.10.4 keywords: - Postgres diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/Makefile.PL new/DBD-Pg-3.10.4/Makefile.PL --- old/DBD-Pg-3.10.3/Makefile.PL 2020-01-20 19:19:34.000000000 +0100 +++ new/DBD-Pg-3.10.4/Makefile.PL 2020-02-01 02:00:34.000000000 +0100 @@ -5,7 +5,7 @@ use 5.008001; ## No version.pm for this one, as the prereqs are not loaded yet. -my $VERSION = '3.10.3'; +my $VERSION = '3.10.4'; ## App::Info is stored inside t/lib ## Create a proper path so we can use it below @@ -259,7 +259,7 @@ sub MY::test { ## no critic my $string = shift->SUPER::test(@_); $string =~ s/(PERL_DL_NONLAZY=1)/PGINITDB="$initdb" $1/g; - return $string; + return "HARNESS_OPTIONS=j1\n$string"; } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/Pg.pm new/DBD-Pg-3.10.4/Pg.pm --- old/DBD-Pg-3.10.3/Pg.pm 2020-01-20 19:19:09.000000000 +0100 +++ new/DBD-Pg-3.10.4/Pg.pm 2020-02-03 18:13:54.000000000 +0100 @@ -16,7 +16,7 @@ { package DBD::Pg; - use version; our $VERSION = qv('3.10.3'); + use version; our $VERSION = qv('3.10.4'); use DBI (); use DynaLoader (); @@ -1730,7 +1730,7 @@ =head1 VERSION -This documents version 3.10.3 of the DBD::Pg module +This documents version 3.10.4 of the DBD::Pg module =head1 DESCRIPTION @@ -2800,7 +2800,7 @@ The C<ping> method determines if there is a working connection to an active database server. It does this by sending a small query to the server, currently -B<'DBD::Pg ping test v3.10.3'>. It returns 0 (false) if the connection is not valid, +B<'DBD::Pg ping test v3.10.4'>. It returns 0 (false) if the connection is not valid, otherwise it returns a positive number (true). The value returned indicates the current state: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/README new/DBD-Pg-3.10.4/README --- old/DBD-Pg-3.10.3/README 2020-01-20 19:19:00.000000000 +0100 +++ new/DBD-Pg-3.10.4/README 2020-01-21 21:04:01.000000000 +0100 @@ -6,7 +6,7 @@ DESCRIPTION: ------------ -This is version 3.10.3 of DBD::Pg, the Perl interface to Postgres using DBI. +This is version 3.10.4 of DBD::Pg, the Perl interface to Postgres using DBI. The web site for this interface, and the latest version, can be found at: http://search.cpan.org/dist/DBD-Pg/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/dbdimp.c new/DBD-Pg-3.10.4/dbdimp.c --- old/DBD-Pg-3.10.3/dbdimp.c 2020-01-20 19:18:39.000000000 +0100 +++ new/DBD-Pg-3.10.4/dbdimp.c 2020-02-03 18:09:45.000000000 +0100 @@ -494,7 +494,7 @@ } /* No matter what state we are in, send an empty query to the backend */ - result = PQexec(imp_dbh->conn, "/* DBD::Pg ping test v3.10.3 */"); + result = PQexec(imp_dbh->conn, "/* DBD::Pg ping test v3.10.4 */"); status = PQresultStatus(result); PQclear(result); if (PGRES_FATAL_ERROR == status) { @@ -2527,7 +2527,7 @@ } /* We ignore attribs for these special cases */ - if (currph->isdefault || currph->iscurrent || is_array) { + if (currph->isdefault || currph->iscurrent || (is_array && !SvAMAGIC(newvalue))) { if (NULL == currph->bind_type) { imp_sth->numbound++; currph->bind_type = pg_type_data(PG_UNKNOWN); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/lib/Bundle/DBD/Pg.pm new/DBD-Pg-3.10.4/lib/Bundle/DBD/Pg.pm --- old/DBD-Pg-3.10.3/lib/Bundle/DBD/Pg.pm 2020-01-20 19:18:49.000000000 +0100 +++ new/DBD-Pg-3.10.4/lib/Bundle/DBD/Pg.pm 2020-01-21 21:03:53.000000000 +0100 @@ -5,7 +5,7 @@ use warnings; use 5.008001; -our $VERSION = '3.10.3'; +our $VERSION = '3.10.4'; 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/00_signature.t new/DBD-Pg-3.10.4/t/00_signature.t --- old/DBD-Pg-3.10.3/t/00_signature.t 2020-01-13 22:46:26.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/00_signature.t 2020-02-03 15:47:02.000000000 +0100 @@ -2,7 +2,7 @@ ## Test that our SIGNATURE file is valid - requires TEST_SIGNATURE env -use 5.006; +use 5.008001; use strict; use warnings; use Test::More; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/00basic.t new/DBD-Pg-3.10.4/t/00basic.t --- old/DBD-Pg-3.10.3/t/00basic.t 2020-01-13 22:29:56.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/00basic.t 2020-02-03 15:47:02.000000000 +0100 @@ -3,7 +3,7 @@ ## Simply test that we can load the DBI and DBD::Pg modules, ## and that the latter gives a good version -use 5.006; +use 5.008001; use strict; use warnings; use Test::More tests => 3; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/01connect.t new/DBD-Pg-3.10.4/t/01connect.t --- old/DBD-Pg-3.10.3/t/01connect.t 2020-01-13 22:30:20.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/01connect.t 2020-02-03 15:47:02.000000000 +0100 @@ -3,7 +3,7 @@ ## Make sure we can connect and disconnect cleanly ## All tests are stopped if we cannot make the first connect -use 5.006; +use 5.008001; use strict; use warnings; use DBI; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/01constants.t new/DBD-Pg-3.10.4/t/01constants.t --- old/DBD-Pg-3.10.3/t/01constants.t 2020-01-13 21:42:46.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/01constants.t 2020-02-03 18:13:54.000000000 +0100 @@ -1,6 +1,6 @@ #!perl -use 5.006; +use 5.008001; use strict; ## We cannot 'use warnings' here as PG_TSQUERY and others trip it up ## no critic (RequireUseWarnings) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/02attribs.t new/DBD-Pg-3.10.4/t/02attribs.t --- old/DBD-Pg-3.10.3/t/02attribs.t 2020-01-13 22:30:31.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/02attribs.t 2020-02-03 16:19:39.000000000 +0100 @@ -2,7 +2,7 @@ ## Test all handle attributes: database, statement, and generic ("any") -use 5.006; +use 5.008001; use strict; use warnings; use Data::Dumper; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/03dbmethod.t new/DBD-Pg-3.10.4/t/03dbmethod.t --- old/DBD-Pg-3.10.3/t/03dbmethod.t 2019-09-03 15:23:26.000000000 +0200 +++ new/DBD-Pg-3.10.4/t/03dbmethod.t 2020-02-03 15:47:02.000000000 +0100 @@ -10,7 +10,7 @@ ## "pg_putline" "pg_putcopydata" "pg_putcopydata_async (see 07copy.t) ## "pg_cancel" "pg_ready" "pg_result" (see 08async.t) -use 5.006; +use 5.008001; use strict; use warnings; use Data::Dumper; @@ -1389,7 +1389,7 @@ ## Test timestamp - should quote as a string $t='DB handle method "quote" work on timestamp'; my $tstype = 93; -my $testtime = '2006-01-28 11:12:13'; +my $testtime = '2008001-01-28 11:12:13'; is ($dbh->quote( $testtime, $tstype ), qq{'$testtime'}, $t); $t='DB handle method "quote" works with an undefined value'; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/03smethod.t new/DBD-Pg-3.10.4/t/03smethod.t --- old/DBD-Pg-3.10.3/t/03smethod.t 2020-01-13 22:30:42.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/03smethod.t 2020-02-03 15:47:02.000000000 +0100 @@ -6,7 +6,7 @@ ## "finish" ## "dump_results" -use 5.006; +use 5.008001; use strict; use warnings; use POSIX qw(:signal_h); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/04misc.t new/DBD-Pg-3.10.4/t/04misc.t --- old/DBD-Pg-3.10.3/t/04misc.t 2020-01-17 21:01:03.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/04misc.t 2020-02-03 15:47:02.000000000 +0100 @@ -2,7 +2,7 @@ ## Various stuff that does not go elsewhere -use 5.006; +use 5.008001; use strict; use warnings; use Test::More; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/06bytea.t new/DBD-Pg-3.10.4/t/06bytea.t --- old/DBD-Pg-3.10.3/t/06bytea.t 2020-01-13 22:30:53.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/06bytea.t 2020-02-03 15:47:02.000000000 +0100 @@ -2,7 +2,7 @@ ## Test bytea handling -use 5.006; +use 5.008001; use strict; use warnings; use Test::More; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/07copy.t new/DBD-Pg-3.10.4/t/07copy.t --- old/DBD-Pg-3.10.3/t/07copy.t 2020-01-13 22:31:03.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/07copy.t 2020-02-03 15:47:02.000000000 +0100 @@ -2,7 +2,7 @@ ## Test the COPY functionality -use 5.006; +use 5.008001; use strict; use warnings; use Data::Dumper; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/08async.t new/DBD-Pg-3.10.4/t/08async.t --- old/DBD-Pg-3.10.3/t/08async.t 2020-01-13 22:31:08.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/08async.t 2020-02-03 15:47:02.000000000 +0100 @@ -2,7 +2,7 @@ ## Test asynchronous queries -use 5.006; +use 5.008001; use strict; use warnings; use Test::More; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/09arrays.t new/DBD-Pg-3.10.4/t/09arrays.t --- old/DBD-Pg-3.10.3/t/09arrays.t 2020-01-13 22:31:13.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/09arrays.t 2020-02-03 15:47:02.000000000 +0100 @@ -2,7 +2,7 @@ ## Test arrays -use 5.006; +use 5.008001; use strict; use warnings; use Test::More; @@ -18,7 +18,7 @@ if (! $dbh) { plan skip_all => 'Connection to database failed, cannot continue testing'; } -plan tests => 201; +plan tests => 203; isnt ($dbh, undef, 'Connect to database for array testing'); @@ -622,5 +622,19 @@ $result = $dbh->selectall_arrayref(q{SELECT array(SELECT 'empty'::text WHERE 1=0)::text[]}); is_deeply ($result, $expected, $t); +SKIP: { + my $fancytime; + eval { require Time::Piece; $fancytime = Time::Piece->localtime;}; + if ($@) { + skip ('Need Time::Piece for some tests', 2); + } + + isa_ok($fancytime, 'Time::Piece'); + + $t=q{Objects send to be bound are unwrapped properly (e.g. Time::Piece)}; + $dbh->do('SELECT ?::timestamptz', undef, $fancytime); + pass ($t); +} + cleanup_database($dbh,'test'); $dbh->disconnect; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/10_pg_error_field.t new/DBD-Pg-3.10.4/t/10_pg_error_field.t --- old/DBD-Pg-3.10.3/t/10_pg_error_field.t 2020-01-13 22:31:20.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/10_pg_error_field.t 2020-02-03 17:59:32.000000000 +0100 @@ -2,7 +2,7 @@ ## Test of $dbh->pg_error_field -use 5.006; +use 5.008001; use strict; use warnings; use Test::More; @@ -106,6 +106,9 @@ $dbh->rollback(); } +$dbh->do("DROP TABLE $test_table"); +$dbh->commit(); +$dbh->disconnect(); + done_testing(); -$dbh->disconnect(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/12placeholders.t new/DBD-Pg-3.10.4/t/12placeholders.t --- old/DBD-Pg-3.10.3/t/12placeholders.t 2020-01-13 22:31:25.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/12placeholders.t 2020-02-03 17:58:33.000000000 +0100 @@ -2,7 +2,7 @@ ## Test of placeholders -use 5.006; +use 5.008001; use strict; use warnings; use Test::More; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/20savepoints.t new/DBD-Pg-3.10.4/t/20savepoints.t --- old/DBD-Pg-3.10.3/t/20savepoints.t 2020-01-13 22:31:33.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/20savepoints.t 2020-02-03 15:47:02.000000000 +0100 @@ -2,7 +2,7 @@ ## Test savepoint functionality -use 5.006; +use 5.008001; use strict; use warnings; use Test::More; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/99cleanup.t new/DBD-Pg-3.10.4/t/99cleanup.t --- old/DBD-Pg-3.10.3/t/99cleanup.t 2020-01-13 22:31:43.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/99cleanup.t 2020-02-03 15:47:02.000000000 +0100 @@ -4,7 +4,7 @@ ## Shutdown the test database if we created one ## Remove the entire directory if it was created as a tempdir -use 5.006; +use 5.008001; use strict; use warnings; use Test::More tests => 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/t/dbdpg_test_setup.pl new/DBD-Pg-3.10.4/t/dbdpg_test_setup.pl --- old/DBD-Pg-3.10.3/t/dbdpg_test_setup.pl 2020-01-16 20:38:11.000000000 +0100 +++ new/DBD-Pg-3.10.4/t/dbdpg_test_setup.pl 2020-02-03 15:47:31.000000000 +0100 @@ -6,7 +6,7 @@ use Data::Dumper; use DBI; use Cwd; -use 5.006; +use 5.008001; select(($|=1,select(STDERR),$|=1)[1]); my $superuser = 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-Pg-3.10.3/testme.tmp.pl new/DBD-Pg-3.10.4/testme.tmp.pl --- old/DBD-Pg-3.10.3/testme.tmp.pl 2020-01-20 17:32:35.000000000 +0100 +++ new/DBD-Pg-3.10.4/testme.tmp.pl 2020-02-03 15:49:42.000000000 +0100 @@ -5,6 +5,7 @@ system 'make'; } +use 5.008001; use strict; use warnings; use DBI ':sql_types';