r24820 - in /branches/upstream/libdbd-pg-perl/current: Changes META.yml Makefile.PL Pg.pm Pg.xs README SIGNATURE TODO dbdimp.c lib/Bundle/DBD/Pg.pm t/01connect.t t/99_perlcritic.t t/99_yaml.t t/dbdpg_test_setup.pl

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sat Sep 6 15:58:55 UTC 2008


Author: gregoa
Date: Sat Sep  6 15:58:45 2008
New Revision: 24820

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=24820
Log:
[svn-upgrade] Integrating new upstream version, libdbd-pg-perl (2.10.3)

Modified:
    branches/upstream/libdbd-pg-perl/current/Changes
    branches/upstream/libdbd-pg-perl/current/META.yml
    branches/upstream/libdbd-pg-perl/current/Makefile.PL
    branches/upstream/libdbd-pg-perl/current/Pg.pm
    branches/upstream/libdbd-pg-perl/current/Pg.xs
    branches/upstream/libdbd-pg-perl/current/README
    branches/upstream/libdbd-pg-perl/current/SIGNATURE
    branches/upstream/libdbd-pg-perl/current/TODO
    branches/upstream/libdbd-pg-perl/current/dbdimp.c
    branches/upstream/libdbd-pg-perl/current/lib/Bundle/DBD/Pg.pm
    branches/upstream/libdbd-pg-perl/current/t/01connect.t
    branches/upstream/libdbd-pg-perl/current/t/99_perlcritic.t
    branches/upstream/libdbd-pg-perl/current/t/99_yaml.t
    branches/upstream/libdbd-pg-perl/current/t/dbdpg_test_setup.pl

Modified: branches/upstream/libdbd-pg-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/Changes?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/Changes (original)
+++ branches/upstream/libdbd-pg-perl/current/Changes Sat Sep  6 15:58:45 2008
@@ -1,6 +1,27 @@
 ('GSM' is Greg Sabino Mullane, greg at turnstep.com)
 
-2.9.2 Released August 18, 2008
+2.10.3 Released August 31, 2008
+
+	- Previous version had wrong SIGNATURE file
+
+2.10.2 Released August 31, 2008
+
+	- Fix minor problem in t/99_yaml.t
+
+2.10.1 Released August 31, 2008 (subversion r11697)
+
+	- Minor testing fix.
+
+2.10.0 Released August 26, 2008 (subversion r11678)
+
+	- Add the 'DBD' trace setting to output only non-DBI trace messages, 
+		and allow 'dbd_verbose' as a connection attribute for the same 
+		effect. [GSM]
+	- Fix a minor problem with testing against 7.4 databases [GSM]
+	- Allow multi-statement do() calls with parameters to work if pg_server_prepare
+		is set to 0 (CPAN bug #38623) [GSM]
+
+2.9.2 Released August 18, 2008 (subversion r11664)
 
 	- Empty Postgres arrays should return empty Perl arrays, not undef.
 		(CPAN bug #38552) [David E. Wheeler]
@@ -276,7 +297,7 @@
 		(CPAN bug #31545) [GSM]
 	- Fix META.yml file. (CPAN bug #25759) [GSM]
 
-1.49 May 7, 2006
+1.49 May 7, 2006 (subversion r7814)
 	- Thanks to Backcountry.com for sponsoring work on this release. [GSM]
 	- Add the statement handle attribute ParamTypes, and fix an error 
 		in ParamValues. ParamTypes requires DBI 1.49 or better. [GSM]
@@ -290,7 +311,7 @@
 		LINE, LSEG, BOX, PATH, POLYGON, and CIRCLE. Also added the 
 		TID type. [GSM]
 
-1.48 April 5, 2006
+1.48 April 5, 2006 (subversion r7781)
 	- Bump minimum DBI version to 1.45 (CPAN bug #18260) (plus problems 
 		in versions 1.42 and 1.44) [GSM]
 	- Fix typo in Pg.pm code (CPAN bug #18537) [marc at sssonline.com]
@@ -300,20 +321,20 @@
 	- Add documentation about connection service files (pg_service.conf). 
 		[David Fetter]
 
-1.47 March 20, 2006
+1.47 March 20, 2006 (subversion r7748)
 	- Fix problem with selecting arrays. (CPAN bugs #18128 and 
 		#18177) [GSM]
 	- Fix problem with dollar-sign placeholders. [GSM]
 
-1.46 March 16, 2006
+1.46 March 16, 2006 (subversion r7739)
 	- Fix problem with dollar-sign placeholders. (husseinp at gmail.com)
 		(CPAN bug #18209) [GSM]
 
-1.45 February 27, 2006
+1.45 February 27, 2006 (subversion r7733)
 	- Fix bug preventing bytea values over 20 characters from showing.
 		Spotted by Igor Shevchenko. [GSM]
 
-1.44 February 21, 2006
+1.44 February 21, 2006 (subversion r7727)
 	- Make sure pg_warn does not warn if the database attribute
 		PrintWarn is off. (Tyler MacDonald tyler at yi.org) [GSM]
 	- Add SIGNATURE file for Module::Signature verification. [GSM]
@@ -358,19 +379,18 @@
 	- Fix strncpy bug in quote.c [Jun Kuriyama] (CPAN bug #14897)
 	- Fix error in is_high_bit_set() [Alexey Tourbin] (CPAN bug #13406)
 
-1.43 June 23, 2005
+1.43 June 23, 2005 (subversion r7586)
 	- Added README.dev file. [GSM]
 	- Fix statement-name related core dump. [GSM]
 	- Ensure state() returns an empty string, not 00000 on success.
 		(CPAN bug #13237) [michael.bell at web.de of OpenCA] [GSM]
 	- Fix rare core dump when $sth still in scope after disconnect [GSM]
 	- Enhancements to README.win32 [fenlisesi at gmail.com]
-	- Fix incorrect sprintf calls (CPAN bug #12204)
-		[Jakub Jelinek]
+	- Fix incorrect sprintf calls (CPAN bug #12204) [Jakub Jelinek]
 	- Fix get_info(18) ("ODBCVERSION") (CPAN bug #12968)
 		[thanks to szinger at lanl.gov] [GSM]
 
-1.42 May 21, 2005
+1.42 May 21, 2005 (subversion r7545)
 	- Fix minor issues with copying and bytea quoting on older 
 		servers. Fix some other memory leaks. [GSM]
 	- Fix backslash parsing in statements (CPAN bug #12870)
@@ -393,7 +413,7 @@
 	- Change VARCHAROID to UNKNOWNOID, suggested by users on mailing 
 		list [GSM]
 
-1.41 April 6, 2005
+1.41 April 6, 2005 (subversion r7485)
 	- Make sure tests remove all temporary tables.
 		[Frank Bax] [GSM]
 	- Preserve sqlstate if rolling back on deallocate, fix 
@@ -411,7 +431,7 @@
 	- Add $dbh methods pg_savepoint(), pg_rollback_to(), and pg_release()
 		[Stephen Clouse] [GSM]
 
-1.40 Tue Feb 22 06:06:45 UTC 2005
+1.40 Tue Feb 22 06:06:45 UTC 2005 (subversion r7424)
 	- Raise required DBI version to 1.38
 	- Execute returns 0 (0E0) not -1 for successful DDL commands.
 		[Robert Treat] [GSM]
@@ -422,8 +442,7 @@
 	- Added explicit support for types SQL_BOOLEAN, DATE, TIME, 
 		TIMESTAMP, and TIMESTAMPTZ. Return correct values for 
 		DATEOID and TIMEOID. [GSM]
-	- Added tablespace support for table_info and primary_key_info.
-		[GSM]
+	- Added tablespace support for table_info and primary_key_info. [GSM]
 	- Added new attributes to $dbh: pg_db, pg_user, pg_pass,
 		pg_host, pg_port, pg_options, pg_socket, pg_pid [GSM]
 	- Minor fixes in quote.c, dbdimp.c, and types.h
@@ -437,13 +456,11 @@
 	- dbdimp.c cleanups: better error messages, ensure commit
 		is only called once after a transaction fails.
 		[Alexey Slynko]
-	- primary_key() returns empty list not undef if no match.
-		[Julian Mehnle]
-	- Added the pg_protocol database handle attribute
-		[GSM]
+	- primary_key() returns empty list not undef if no match. [Julian Mehnle]
+	- Added the pg_protocol database handle attribute [GSM]
 	- Changed "noprefix" to pg_noprefix
 
-1.32 Wed Feb 25 18:24:18 UTC 2004
+1.32 Wed Feb 25 18:24:18 UTC 2004 (subversion r7234)
 	- Bug fix for memory allocation problems on win systems
 		[Rafael Kitover <caelum at debian.org>]
 	- Rewrote the foreign_key_info() method to handle 
@@ -489,7 +506,7 @@
 	- Changed get_info(29) to return (") instead of (\")
 		(CPAN bug #4829) [GSM]
 
-1.31 Mon Nov 17 21:21:21 UTC 2003
+1.31 Mon Nov 17 21:21:21 UTC 2003 (subversion r7157)
 	- $dbh->{TYPE} now returns SQL_TYPE_TIMESTAMP instead of 1114 for 
 		timestamp columns. (In 1.31_x {x| x<8} $sth->{TYPE} returned 0
 		but reported by ["Hirche, Joachim" <Joachim.Hirche at cimconcepts.com>]).
@@ -536,7 +553,7 @@
 	- make test is now more intelligent and will bail out early if
 		db connection fails. [GSM]
 
-1.22 Wed Mar 26 22:33:44 EST 2003
+1.22 Wed Mar 26 22:33:44 EST 2003 (subversion r6993)
 	- Win32 compile fix for snprintf [Joe Spears]
 	- Fix memory allocation problem in bytea escaping [Barrie Slaymaker]
 	- Add utf8 support [Dominic Mitchell <dom at semantico.com>]
@@ -548,7 +565,7 @@
 	- Added support for schemas [GSM]
 	- Fix binary to a bytea field conversion [Chris Dunlop <chris at onthe.net.au>]
 
-1.21 Sun Jan 12 21:00:44 EST 2003
+1.21 Sun Jan 12 21:00:44 EST 2003 (subversion r6960)
 	- System tables no longer returned by tables(). [Dave Rolsky]
 	- Fix table_attributes to handle removal of pg_relcheck in 7.3,
 		from Ian Barwick <barwick at gmx.net>
@@ -558,7 +575,7 @@
 	- New pg_bool_tf database handle that when set to true booleans are
 		returned as 't'/'f' rather than 1/0.
 
-1.20 Wed Nov 27 16:19:26 2002
+1.20 Wed Nov 27 16:19:26 2002 (subversion r6949)
 	- Maintenance transferred to GBorg,
 		http://gborg.postgresql.org/project/dbdpg/projdisplay.php. Incremented
 		version number to reflect new management. [Bruce Momjian]

Modified: branches/upstream/libdbd-pg-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/META.yml?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/META.yml (original)
+++ branches/upstream/libdbd-pg-perl/current/META.yml Sat Sep  6 15:58:45 2008
@@ -1,6 +1,6 @@
---- #YAML:1.0
+--- #YAML:1.1
 name                        : DBD-Pg
-version                     : 2.9.2
+version                     : 2.10.3
 abstract                    : DBI PostgreSQL interface
 author:              
   - Greg Sabino Mullane <greg at turnstep.com>
@@ -12,6 +12,13 @@
 requires:
   DBI                       : 1.52
   perl                      : 5.006001
+  version                   : 0
+build_requires:
+  DBI                       : 1.52
+  Test::More                : 0.61
+  version                   : 0
+configure_requires:
+  DBI                       : 1.52
   version                   : 0
 recommends:
   Cwd                       : 0
@@ -27,27 +34,21 @@
   Test::Warn                : 0.08
   Test::YAML::Meta          : 0.03
   Text::SpellChecker        : 0
-build_requires:
-  DBI                       : 1.52
-  Test::More                : 0.61
-  version                   : 0
-configure_requires:
-  DBI                       : 1.52
-  version                   : 0
 
 provides:
   DBD::Pg:
     file                    : Pg.pm
-    version                 : 2.9.2
+    version                 : 2.10.3
   Bundle::DBD::Pg:
     file                    : lib/Bundle/DBD/Pg.pm
-    version                 : 2.9.2
+    version                 : 2.10.3
 
 keywords:
   - Postgres
   - PostgreSQL
   - DBI
   - libpq
+  - dbdpg
 
 resources:
   homepage                  : http://search.cpan.org/dist/DBD-Pg/
@@ -57,7 +58,7 @@
   Repository                : http://svn.perl.org/modules/DBD-Pg/trunk/
 
 meta-spec:
-  version                   : 1.3
-  url                       : http://module-build.sourceforge.net/META-spec-v1.3.html
+  version                   : 1.4
+  url                       : http://module-build.sourceforge.net/META-spec-v1.4.html
 
 generated_by                : emacs

Modified: branches/upstream/libdbd-pg-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/Makefile.PL?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/Makefile.PL (original)
+++ branches/upstream/libdbd-pg-perl/current/Makefile.PL Sat Sep  6 15:58:45 2008
@@ -1,4 +1,4 @@
-# $Id: Makefile.PL 11662 2008-08-18 13:43:05Z turnstep $
+# $Id: Makefile.PL 11705 2008-09-01 01:42:41Z turnstep $
 
 use ExtUtils::MakeMaker;
 use Config;
@@ -7,7 +7,7 @@
 use 5.006001;
 
 ## No version.pm for this one, as the prereqs are not loaded yet.
-my $VERSION = '2.9.2';
+my $VERSION = '2.10.3';
 
 my $lib;
 BEGIN {

Modified: branches/upstream/libdbd-pg-perl/current/Pg.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/Pg.pm?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/Pg.pm (original)
+++ branches/upstream/libdbd-pg-perl/current/Pg.pm Sat Sep  6 15:58:45 2008
@@ -1,5 +1,5 @@
 #  -*-cperl-*-
-#  $Id: Pg.pm 11663 2008-08-18 13:56:12Z turnstep $
+#  $Id: Pg.pm 11705 2008-09-01 01:42:41Z turnstep $
 #
 #  Copyright (c) 2002-2008 Greg Sabino Mullane and others: see the Changes file
 #  Portions Copyright (c) 2002 Jeffrey W. Baker
@@ -17,7 +17,7 @@
 {
 	package DBD::Pg;
 
-	use version; our $VERSION = qv('2.9.2');
+	use version; our $VERSION = qv('2.10.3');
 
 	use DBI ();
 	use DynaLoader ();
@@ -80,6 +80,7 @@
 	## These two methods are here to allow calling before connect()
 	sub parse_trace_flag {
 		my ($class, $flag) = @_;
+		return (0x7FFFFF00 - 0x08000000) if $flag eq 'DBD'; ## all but the prefix
 		return 0x01000000 if $flag eq 'pglibpq';
 		return 0x02000000 if $flag eq 'pgstart';
 		return 0x04000000 if $flag eq 'pgend';
@@ -184,7 +185,7 @@
 
 
 	sub connect { ## no critic (ProhibitBuiltinHomonyms)
-		my ($drh, $dbname, $user, $pass)= @_;
+		my ($drh, $dbname, $user, $pass, $attr) = @_;
 
 		## Allow "db" and "database" as synonyms for "dbname"
 		$dbname =~ s/\b(?:db|database)\s*=/dbname=/;
@@ -212,6 +213,12 @@
 
 		my $version = $dbh->{pg_server_version};
 		$dbh->{private_dbdpg}{version} = $version;
+
+		if ($attr) {
+			if ($attr->{dbd_verbose}) {
+				$dbh->trace('DBD');
+			}
+		}
 
 		return $dbh;
 	}
@@ -1696,7 +1703,7 @@
 
 =head1 VERSION
 
-This documents version 2.9.2 of the DBD::Pg module
+This documents version 2.10.3 of the DBD::Pg module
 
 =head1 DESCRIPTION
 
@@ -1805,6 +1812,11 @@
     $password,
     {AutoCommit => 0, RaiseError => 1});
 
+The attribute hash can also contain a key named C<dbd_verbose>, which 
+simply calls C<$dbh->trace('DBD')> after the handle is created. This attribute 
+is not recommended, as it is clearer to simply explicitly call C<trace> explicitly 
+in your script.
+
 =head3 B<connect_cached>
 
   $dbh = DBI->connect_cached("dbi:Pg:dbname=$dbname", $username, $password, \%options);
@@ -1921,6 +1933,10 @@
   $h->trace($h->parse_trace_flags('SQL|pglibpq'));
   $h->trace($h->parse_trace_flags('1|pgstart'));
 
+  ## Simpler:
+  $h->trace('SQL|pglibpq');
+  $h->trace('1|pgstart');
+
   my $value = DBD::Pg->parse_trace_flag('pglibpq');
   DBI->trace($value);
 
@@ -1949,6 +1965,11 @@
 as server-side prepared statements are used extensively by DBD::Pg.
 For maximum portability of output (but with a potential performance 
 hit), use with C<$dbh->{pg_server_prepare} = 0>
+
+=item DBD
+
+Turns on all non-DBI flags, in other words, only the ones that are specific 
+to DBD::Pg (all those below which start with the letters 'pg').
 
 =item pglibpq
 
@@ -3027,17 +3048,21 @@
 
 This method method requires DBI version 1.55 or better.
 
-=head3 B<Name> (string, read-only)
-
-Returns the name of the current database.
-
-=head3 B<Username> (string, read-only)
-
-Returns the name of the user connected to the database.
+=head3 B<pg_server_prepare> (integer)
+
+DBD::Pg specific attribute. Indicates if DBD::Pg should attempt to use server-side 
+prepared statements. The default value, 1, indicates that prepared statements should 
+be used whenever possible. See the section on the L</prepare> method for more information.
+
+=head3 B<pg_placeholder_dollaronly> (boolean)
+
+DBD::Pg specific attribute. Defaults to false. When true, question marks inside of statements 
+are not treated as L</placeholders>. Useful for statements that contain unquoted question 
+marks, such as geometric operators.
 
 =head3 B<pg_enable_utf8> (boolean)
 
-DBD::Pg specific attribute. If true, then the C<utf8> flag will be turned
+DBD::Pg specific attribute. If true, then the C<utf8> flag will be turned on
 for returned character data (if the data is valid UTF-8). For details about
 the C<utf8> flag, see the C<Encode> module. This attribute is only relevant under
 perl 5.8 and later.
@@ -3053,12 +3078,6 @@
 show any detail, hint, or context fields. A value of 2 ("VERBOSE") will
 show all available information.
 
-=head3 B<pg_protocol> (integer, read-only)
-
-DBD::Pg specific attribute. Returns the version of the PostgreSQL server.
-If DBD::Pg is unable to figure out the version, it will return a "0". Otherwise,
-a "3" is returned.
-
 =head3 B<pg_lib_version> (integer, read-only)
 
 DBD::Pg specific attribute. Indicates which version of PostgreSQL that 
@@ -3072,6 +3091,14 @@
 the current database handle is connected to. Returns a number with major, 
 minor, and revision together; version 8.0.1 would be C<80001>.
 
+=head3 B<Name> (string, read-only)
+
+Returns the name of the current database.
+
+=head3 B<Username> (string, read-only)
+
+Returns the name of the user connected to the database.
+
 =head3 B<pg_db> (string, read-only)
 
 DBD::Pg specific attribute. Returns the name of the current database.
@@ -3080,11 +3107,6 @@
 
 DBD::Pg specific attribute. Returns the name of the user that
 connected to the server.
-
-=head3 B<pg_pass> (string, read-only)
-
-DBD::Pg specific attribute. Returns the password used to connect
-to the server.
 
 =head3 B<pg_host> (string, read-only)
 
@@ -3097,21 +3119,26 @@
 DBD::Pg specific attribute. Returns the port of the connection to
 the server.
 
+=head3 B<pg_socket> (integer, read-only)
+
+DBD::Pg specific attribute. Returns the file description number of
+the connection socket to the server.
+
+=head3 B<pg_pass> (string, read-only)
+
+DBD::Pg specific attribute. Returns the password used to connect
+to the server.
+
+=head3 B<pg_options> (string, read-only)
+
+DBD::Pg specific attribute. Returns the command-line options passed
+to the server. May be an empty string.
+
 =head3 B<pg_default_port> (integer, read-only)
 
 DBD::Pg specific attribute. Returns the default port used if none is
 specifically given.
 
-=head3 B<pg_options> (string, read-only)
-
-DBD::Pg specific attribute. Returns the command-line options passed
-to the server. May be an empty string.
-
-=head3 B<pg_socket> (integer, read-only)
-
-DBD::Pg specific attribute. Returns the file description number of
-the connection socket to the server.
-
 =head3 B<pg_pid> (integer, read-only)
 
 DBD::Pg specific attribute. Returns the process id (PID) of the
@@ -3121,18 +3148,6 @@
 
 DBD::Pg specific attribute. Default is off. If true, then the L</prepare> method will 
 immediately prepare commands, rather than waiting until the first execute.
-
-=head3 B<pg_server_prepare> (integer)
-
-DBD::Pg specific attribute. Indicates if DBD::Pg should attempt to use server-side 
-prepared statements. The default value, 1, indicates that prepared statements should 
-be used whenever possible. See the section on the L</prepare> method for more information.
-
-=head3 B<pg_placeholder_dollaronly> (boolean)
-
-DBD::Pg specific attribute. Defaults to false. When true, question marks inside of statements 
-are not treated as L</placeholders>. Useful for statements that contain unquoted question 
-marks, such as geometric operators.
 
 =head3 B<pg_expand_array> (boolean, read-only)
 
@@ -3166,6 +3181,12 @@
 of the driver using:
 
   $dbh->{Driver}->{Name}
+
+=head3 B<pg_protocol> (integer, read-only)
+
+DBD::Pg specific attribute. Returns the version of the PostgreSQL server.
+If DBD::Pg is unable to figure out the version, it will return a "0". Otherwise,
+a "3" is returned.
 
 =head3 B<RowCacheSize> (integer)
 

Modified: branches/upstream/libdbd-pg-perl/current/Pg.xs
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/Pg.xs?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/Pg.xs (original)
+++ branches/upstream/libdbd-pg-perl/current/Pg.xs Sat Sep  6 15:58:45 2008
@@ -1,5 +1,5 @@
 /*
-  $Id: Pg.xs 11357 2008-06-01 02:32:53Z turnstep $
+  $Id: Pg.xs 11673 2008-08-23 22:11:15Z turnstep $
 
   Copyright (c) 2000-2008 Greg Sabino Mullane and others: see the Changes file
   Portions Copyright (c) 1997-2000 Edmund Mergl
@@ -305,8 +305,7 @@
 			imp_sth = (imp_sth_t*)(DBIh_COM(sth));
 			if (!dbdxst_bind_params(sth, imp_sth, items-2, ax+2))
 				XSRETURN_UNDEF;
-			imp_sth->server_prepare = 1;
-			imp_sth->onetime = 1; /* Overrides the above at actual PQexec* decision time */
+			imp_sth->onetime = 1; /* Tells dbdimp.c not to bother preparing this */
 			imp_sth->async_flag = asyncflag;
 			retval = dbd_st_execute(sth, imp_sth);
 		}

Modified: branches/upstream/libdbd-pg-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/README?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/README (original)
+++ branches/upstream/libdbd-pg-perl/current/README Sat Sep  6 15:58:45 2008
@@ -1,12 +1,12 @@
 
 DBD::Pg  --  the DBI PostgreSQL interface for Perl
 
-# $Id: README 11662 2008-08-18 13:43:05Z turnstep $
+# $Id: README 11705 2008-09-01 01:42:41Z turnstep $
 
 DESCRIPTION:
 ------------
 
-This is version 2.9.2 of DBD::Pg, the Perl interface to Postgres using DBI. 
+This is version 2.10.3 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/

Modified: branches/upstream/libdbd-pg-perl/current/SIGNATURE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/SIGNATURE?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/SIGNATURE (original)
+++ branches/upstream/libdbd-pg-perl/current/SIGNATURE Sat Sep  6 15:58:45 2008
@@ -15,27 +15,27 @@
 Hash: RIPEMD160
 
 SHA1 14d7a3c7a0b0497e4ab463b67850bd5e1f70409d .perlcriticrc
-SHA1 4a4e4482f78ed8c5d0a33ff768cbcd3e2a7fcdda Changes
+SHA1 df34889abf6ccc4a1da6f6de86768e0d76977b66 Changes
 SHA1 4d91c71e5dbb19ece1505ab75c36d00a744bb076 MANIFEST
 SHA1 22055b195f5cf15d7909e8a08468e617f46154e7 MANIFEST.SKIP
-SHA1 6f84819a1c50ae442299db27de8eac43b5c4596f META.yml
-SHA1 d4625971f94dffb69d751718652055846bd5f292 Makefile.PL
+SHA1 d1041812fe1446c6453e9fb6e91e6954f314a61c META.yml
+SHA1 29f8f7350dfeec70e569cb616863de5044e877cf Makefile.PL
 SHA1 c51356c52c139265e20a2ad33bc8d3ee04f6ff48 Pg.h
-SHA1 85166d9faa677761e0d3578c13ee1e15f470d3ec Pg.pm
-SHA1 06d991c871e5f2b3b900990fc71e6207c94ad8cf Pg.xs
-SHA1 3b6c9cbf977c30795e7c1b889944261e2b6328f3 README
+SHA1 1e5e4acd4bb754ae4b9c36f4638a98fb268bc7c8 Pg.pm
+SHA1 caf6c843024b2853bc2460c60f9c667f9150cbd4 Pg.xs
+SHA1 b0bbb2f7211ec4a5e9e638994819ae6e06be7a27 README
 SHA1 c6d2633bdb72186bfb2887d6a1efab3a06f44cbd README.dev
 SHA1 968d5fad61bce160b31a9cb1a21dd240b9df930f README.win32
-SHA1 5ff93c2ee0668aeda441a52d5c7c2ecdacb29570 TODO
-SHA1 6a337ff4a1df36ce10f882cc20e1713001ba0ca7 dbdimp.c
+SHA1 df2b7dc8885b93d476b8f553ad1ee356734585bb TODO
+SHA1 9f62d36a36b23819316112e853f142bd8bfefafc dbdimp.c
 SHA1 e079dca9f560b265daba52e7daee42e1a17184bb dbdimp.h
 SHA1 6c33bcf138e577722283bef02fceb8cbce4d100d dbivport.h
-SHA1 63403370eb706c2e037189b0a926a1353891ae9d lib/Bundle/DBD/Pg.pm
+SHA1 2bbc80c96d070b95cb12110057356ab185652aec lib/Bundle/DBD/Pg.pm
 SHA1 76a2c65c065a93775ceadf933a5d38bb25c8afa4 quote.c
 SHA1 0a1fdd0406c5c367a9aba366d1d35cfa8d5272ae quote.h
 SHA1 93aa7e8cae0a361d1e6163dea0281ebff41f3c5f t/00-signature.t
 SHA1 073baf503a601ceeb49516d61bd275f0c1e51563 t/00basic.t
-SHA1 d4680dbe6b7d5bd5d68c2cdffdc7d2c62c895b2d t/01connect.t
+SHA1 e5c88f4796bed486507104d3a751315995c77b94 t/01connect.t
 SHA1 ec842e6aaf11d6a55809318d69bd11ce8245092f t/01constants.t
 SHA1 806b8b7dfac746f8d4624a61cd0de387baa206ee t/02attribs.t
 SHA1 0d0a07674d2c493601a6807d22c2c8f2bdbbcd91 t/03dbmethod.t
@@ -47,12 +47,12 @@
 SHA1 acfbfcdbbf4f285b068da11c1031d0afc1c365b5 t/09arrays.t
 SHA1 ee401c485a5c6f36844268eac0e95485359790bf t/12placeholders.t
 SHA1 85b5df8ef0c78b1d2d0018d874c62af7ef01a28f t/20savepoints.t
-SHA1 4b8d73523c30a0569b769f8374f5c99e9d17ba3b t/99_perlcritic.t
+SHA1 3bfb78b128724d3badf19ec4db8c1674543c557e t/99_perlcritic.t
 SHA1 9f94e06ec6b6a27512f1f4c638635e4095ae6be7 t/99_pod.t
 SHA1 8910669c9217011efc9a91b4cd5da0f6e7537cc2 t/99_spellcheck.t
-SHA1 540fb0b335d5af08fcc322f18c4166671b50a89b t/99_yaml.t
+SHA1 ace40437561196dc6a08b5e725de35aed0e9902c t/99_yaml.t
 SHA1 60031c2db489d77291078ab6a418723e1a35f137 t/99cleanup.t
-SHA1 978844798c01484e029b0ae8ee377c18b0602fd0 t/dbdpg_test_setup.pl
+SHA1 1ecceecf54ab48affeae320e0cd8dfbcacfd51d5 t/dbdpg_test_setup.pl
 SHA1 bc4a58bdd5e853139f9e1fc6129f83e50a07a2c6 t/lib/App/Info.pm
 SHA1 58befda00c12b1721875262505112203bf230450 t/lib/App/Info/Handler.pm
 SHA1 b5bf85b12a5fc207c44113a9c028fb7fbd68531f t/lib/App/Info/Handler/Prompt.pm
@@ -65,7 +65,7 @@
 SHA1 f07cd5ecaeb854c81ceb9206364979cf607e6546 win32.mak
 -----BEGIN PGP SIGNATURE-----
 
-iEYEAREDAAYFAkipf4sACgkQvJuQZxSWSsgAWgCeIAV+hmQ0x4eX9NGBzitA13XO
-Z7cAoNGyvPYASa0McGItzFi/0PMWRErj
-=0q6E
+iEYEAREDAAYFAki7SOsACgkQvJuQZxSWSshQMQCgglBy/lNirUzKyS4Hq58wQhiD
+6WsAoKZ+MyySWAmpBj421vTNjv5vU86/
+=kgk+
 -----END PGP SIGNATURE-----

Modified: branches/upstream/libdbd-pg-perl/current/TODO
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/TODO?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/TODO (original)
+++ branches/upstream/libdbd-pg-perl/current/TODO Sat Sep  6 15:58:45 2008
@@ -3,7 +3,6 @@
 Feature requests can be entered at 
 http://rt.cpan.org/Public/Dist/Display.html?Name=DBD-Pg
 
-- Make docs easier to read on their own without lots of DBI cross referencing.
 - Use WITH HOLD for cursor work
 - Devise a way to automatically create ppm for Windows builds
 - I8N docs and error messages
@@ -18,3 +17,4 @@
 - Handle and/or better tests for different encoding, especially those not 
    supported as a server encoding (e.g. BIG5)
 - Support passing hashrefs in and out for custom types.
+- Support a flag for behind-the-scenes CURSOR to emulate partial fetches.

Modified: branches/upstream/libdbd-pg-perl/current/dbdimp.c
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/dbdimp.c?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/dbdimp.c (original)
+++ branches/upstream/libdbd-pg-perl/current/dbdimp.c Sat Sep  6 15:58:45 2008
@@ -1,6 +1,6 @@
 /*
 
-  $Id: dbdimp.c 11661 2008-08-18 13:42:05Z turnstep $
+  $Id: dbdimp.c 11673 2008-08-23 22:11:15Z turnstep $
 
   Copyright (c) 2002-2008 Greg Sabino Mullane and others: see the Changes file
   Portions Copyright (c) 2002 Jeffrey W. Baker
@@ -2919,8 +2919,8 @@
 	   1. The statement is DML
 	   2. The attribute "pg_direct" is false
 	   3. The attribute "pg_server_prepare" is not 0
-	   4. There is one or more placeholders
-	   5. There are no DEFAULT values
+	   4. There is one or more placeholders (but "onetime" has not been set)
+	   5. There are no DEFAULT or CURRENT values
 	   6a. The attribute "pg_server_prepare" is 1
 	   OR
 	   6b. All placeholders are bound (and "pg_server_prepare" is 2)

Modified: branches/upstream/libdbd-pg-perl/current/lib/Bundle/DBD/Pg.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/lib/Bundle/DBD/Pg.pm?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/lib/Bundle/DBD/Pg.pm (original)
+++ branches/upstream/libdbd-pg-perl/current/lib/Bundle/DBD/Pg.pm Sat Sep  6 15:58:45 2008
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-$VERSION = '2.9.2';
+$VERSION = '2.10.3';
 
 1;
 

Modified: branches/upstream/libdbd-pg-perl/current/t/01connect.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/t/01connect.t?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/t/01connect.t (original)
+++ branches/upstream/libdbd-pg-perl/current/t/01connect.t Sat Sep  6 15:58:45 2008
@@ -72,7 +72,7 @@
 
 	$t=q{Connect with invalid option fails};
 	my $err;
-	(undef,$err,$dbh) = connect_database({ dbreplace => 'dbbarf' });
+	(undef,$err,$dbh) = connect_database({ dbreplace => 'dbbarf', nocreate => 1 });
 	like ($err, qr{DBI connect.+failed:}, $t);
 
 	for my $opt (qw/db dbname database/) {
@@ -115,7 +115,7 @@
 			$extra .= sprintf "\n%-*s $ENV{$name}", $offset, $name;
 		}
 	}
-	for my $name (qw/DBI_DRIVER DBI_AUTOPROXY/) {
+	for my $name (qw/DBI_DRIVER DBI_AUTOPROXY LANG/) {
 		if (exists $ENV{$name} and defined $ENV{$name}) {
 			$extra .= sprintf "\n%-*s $ENV{$name}", $offset, $name;
 		}

Modified: branches/upstream/libdbd-pg-perl/current/t/99_perlcritic.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/t/99_perlcritic.t?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/t/99_perlcritic.t (original)
+++ branches/upstream/libdbd-pg-perl/current/t/99_perlcritic.t Sat Sep  6 15:58:45 2008
@@ -46,6 +46,56 @@
 	plan tests => 5+ @testfiles + $testmore;
 }
 ok (@testfiles, 'Found files in test directory');
+
+## Make sure the README.dev mentions all files used, and jives with the MANIFEST
+my $file = 'README.dev';
+open my $fh, '<', $file or die qq{Could not open "$file": $!\n};
+my $point = 1;
+my %devfile;
+while (<$fh>) {
+	chomp;
+	if (1 == $point) {
+		next unless /File List/;
+		$point = 2;
+		next;
+	}
+	last if /= Compiling/;
+	print "Checking $_\n";
+	if (m{^([\w\./-]+) \- }) {
+		$devfile{$1} = $.;
+		next;
+	}
+	if (m{^(t/.+)}) {
+		$devfile{$1} = $.;
+	}
+}
+close $fh or die qq{Could not close "$file": $!\n};
+
+$file = 'MANIFEST';
+my %manfile;
+open $fh, '<', $file or die qq{Could not open "$file": $!\n};
+while (<$fh>) {
+	next unless /^(\S.+)/;
+	$manfile{$1} = $.;
+}
+close $fh or die qq{Could not close "$file": $!\n};
+
+## Everything in MANIFEST should also be in README.dev
+for my $file (sort keys %manfile) {
+	if (!exists $devfile{$file}) {
+		fail qq{File "$file" is in MANIFEST but not in README.dev\n};
+	}
+}
+## Everything in README.dev should also be in MANIFEST, except derived files
+my %derived = map { $_, 1 } qw/Makefile Pg.c README.testdatabase dbdpg_test_database/;
+for my $file (sort keys %devfile) {
+	if (!exists $manfile{$file} and !exists $derived{$file}) {
+		fail qq{File "$file" is in README.dev but not in MANIFEST\n};
+	}
+	if (exists $manfile{$file} and exists $derived{$file}) {
+		fail qq{File "$file" is derived and should not be in MANIFEST\n};
+	}
+}
 
 ## Make sure all Test::More function calls are standardized
 for my $file (sort keys %fileslurp) {

Modified: branches/upstream/libdbd-pg-perl/current/t/99_yaml.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/t/99_yaml.t?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/t/99_yaml.t (original)
+++ branches/upstream/libdbd-pg-perl/current/t/99_yaml.t Sat Sep  6 15:58:45 2008
@@ -26,5 +26,5 @@
 	}
 }
 else {
-	meta_spec_ok ('META.yml', 1.3);
+	meta_spec_ok ('META.yml', 1.4);
 }

Modified: branches/upstream/libdbd-pg-perl/current/t/dbdpg_test_setup.pl
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbd-pg-perl/current/t/dbdpg_test_setup.pl?rev=24820&op=diff
==============================================================================
--- branches/upstream/libdbd-pg-perl/current/t/dbdpg_test_setup.pl (original)
+++ branches/upstream/libdbd-pg-perl/current/t/dbdpg_test_setup.pl Sat Sep  6 15:58:45 2008
@@ -268,10 +268,10 @@
 		}
 		$info = '';
 		eval {
-			$info = qx{$pg_ctl --help};
+			$info = qx{$pg_ctl --help 2>&1};
 		};
 		last GETHANDLE if $@; ## Fail - pg_ctl bad
-		if (!defined $info or $info !~ /\@postgresql\.org/) {
+		if (!defined $info or ($info !~ /\@postgresql\.org/ and $info !~ /run as root/)) {
 			$@ = defined $initdb ? "Bad pg_ctl output: $info" : 'Bad pg_ctl output';
 			last GETHANDLE; ## Fail - pg_ctl bad
 		}




More information about the Pkg-perl-cvs-commits mailing list