@@ -1,6 +1,15 @@
'GSM' is Greg Sabino Mullane, greg@turnstep.com
+Version 3.4.1 Released August 20, 2014 (git commit cfd146effde09c493ac7573408ac29d6d9cbed47)
+
+ - Allow '%' again for the type in table_info() and thus tables()
+ It's not documented or tested in DBI, but it used to work until
+ DBD::Pg 3.4.0, and the change broke DBIx::Class::Schema::Loader, which
+ uses type='%'.
+ [Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>]
+
+
Version 3.4.0 Released August 16, 2014 (git commit 7a5da12d84b4c2e9879f90fb6168f56c095071fa)
- Cleanup and improve table_info()
@@ -1,6 +1,6 @@
--- #YAML:1.0
name : DBD-Pg
-version : 3.4.0
+version : 3.4.1
abstract : DBI PostgreSQL interface
author:
- Greg Sabino Mullane <greg@turnstep.com>
@@ -30,10 +30,10 @@ recommends:
provides:
DBD::Pg:
file : Pg.pm
- version : 3.4.0
+ version : 3.4.1
Bundle::DBD::Pg:
file : lib/Bundle/DBD/Pg.pm
- version : 3.4.0
+ version : 3.4.1
keywords:
- Postgres
@@ -5,7 +5,7 @@ use warnings;
use 5.008001;
## No version.pm for this one, as the prereqs are not loaded yet.
-my $VERSION = '3.4.0';
+my $VERSION = '3.4.1';
## App::Info is stored inside t/lib
## Create a proper path so we can use it below
@@ -16,7 +16,7 @@ use 5.008001;
{
package DBD::Pg;
- use version; our $VERSION = qv('3.4.0');
+ use version; our $VERSION = qv('3.4.1');
use DBI ();
use DynaLoader ();
@@ -1135,7 +1135,7 @@ use 5.008001;
ORDER BY "TABLE_TYPE", "TABLE_CAT", "TABLE_SCHEM", "TABLE_NAME"
};
- if (defined($type) and length($type)) {
+ if (defined($type) and length($type) and $type ne '%') {
my $type_restrict = join ', ' =>
map { $dbh->quote($_) unless /^'/ }
grep {length}
@@ -1682,7 +1682,7 @@ DBD::Pg - PostgreSQL database driver for the DBI module
=head1 VERSION
-This documents version 3.4.0 of the DBD::Pg module
+This documents version 3.4.1 of the DBD::Pg module
=head1 DESCRIPTION
@@ -5,7 +5,7 @@ DBD::Pg -- the DBI PostgreSQL interface for Perl
DESCRIPTION:
------------
-This is version 3.4.0 of DBD::Pg, the Perl interface to Postgres using DBI.
+This is version 3.4.1 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/
@@ -575,6 +575,10 @@ other sections referenced herein (indicated with **)
* Test on variety of versions (see ** Heavy Testing), including the optional tests.
+* Test modules that depend on DBD::Pg, in particular DBIx::Class and DBIx::Class::Schema::Loader
+
+* Consider a pre-release announcement to dbix-class-devel@lists.scsys.co.uk
+
* Make sure everything is up to date in git (git status)
* Update the versions (see ** Version Numbers) in README, Pg.pm (2 places!), Makefile.PL,
@@ -15,24 +15,24 @@ not run its Makefile.PL or Build.PL.
Hash: RIPEMD160
SHA1 6f4143600430e0bc949c17b05ac34844e5fb3ee4 .perlcriticrc
-SHA1 4d369a04da7b0c8bf62a50e18b23033538a83285 Changes
+SHA1 81f729ce60e2eb4163382cbf6e7f45c7a1dcf830 Changes
SHA1 21bc5f3c797d4d5b72285198ffeb1e4e1f0a2902 LICENSES/artistic.txt
SHA1 06877624ea5c77efe3b7e39b0f909eda6e25a4ec LICENSES/gpl-2.0.txt
SHA1 9c2b33069c9ceb7cd57ea0aeb7b8de144ab75672 MANIFEST
SHA1 8d2857ee9a6326c08507d8552f86709dd068fbe5 MANIFEST.SKIP
-SHA1 63dda20e5519bcd8a8382942c5128bc766e0eea6 META.yml
-SHA1 582184935dcbd677901b3642ecd00e20c5c95163 Makefile.PL
+SHA1 258f6108b4b95af46a88be3089ad3ac55f062dd2 META.yml
+SHA1 328948695a097c9cf75ef55cd58896cdcfc23afc Makefile.PL
SHA1 8d7577d85e3a6299c1af5a12ac5faa3af6d11b18 Pg.h
-SHA1 8b4e2688641dfa2fe102f6aef0d1b838ba78cdfc Pg.pm
+SHA1 4d33d116054d6a56e0ce3f1119eafdd8e90ecd2e Pg.pm
SHA1 595b26f97c7708f82bd5c2c60e4f59724958c2bc Pg.xs
-SHA1 db7ad0c7900eae6fc824494e6f317de7e61a6e25 README
-SHA1 34036e0b0dc15d899f561e8177227661eaaef2f1 README.dev
+SHA1 6cbb661c34938b85c9009694f738c039282149ae README
+SHA1 0332ac652afae7e53181e075ca446b88b8631ac6 README.dev
SHA1 7e213bf90f513595b59c0a2c4ef94fea1592efcf README.win32
SHA1 15c20ab7888be67fa0c6f98aa81f2c4e20bd3f66 TODO
SHA1 74f0a441f0593fd6902d57ab5922cf799ac57d44 dbdimp.c
SHA1 886c53b8dcc360f46077bd5cfbf905d7ac530243 dbdimp.h
SHA1 6c33bcf138e577722283bef02fceb8cbce4d100d dbivport.h
-SHA1 a3a6239ae17d525053a2370ee8b2df6333f43969 lib/Bundle/DBD/Pg.pm
+SHA1 79c0e361486f73e883391bb1ec4d287979d897ac lib/Bundle/DBD/Pg.pm
SHA1 cd0b9dfa8153734b147c5689abe81ec2196bf364 quote.c
SHA1 931179894b8b48de407547a38ce0e034f75baaaa quote.h
SHA1 93aa7e8cae0a361d1e6163dea0281ebff41f3c5f t/00_signature.t
@@ -40,7 +40,7 @@ SHA1 4691376dd83eef11b59ee6b1bb4ce2eb951e1920 t/00basic.t
SHA1 1f50adea4f2c7a5110eca34dc8b6d5dc9d4121ed t/01connect.t
SHA1 42b566f777c15a3d07e41d4bca55be435349376c t/01constants.t
SHA1 c9473410e196cc020902cf92ff52de8ebbf00420 t/02attribs.t
-SHA1 4923adde5a818e04f3733068160a76abbe60c64b t/03dbmethod.t
+SHA1 31b673055dd68c5879bbd7547ea8bd656c3f89d7 t/03dbmethod.t
SHA1 4e16959f7f2e68667a42c86c3d35e8d317034b23 t/03smethod.t
SHA1 dd47bd1ac55072177a57f856daca98904939112c t/04misc.t
SHA1 9113f062bf144a5768e9e4e98a0f140f498caee1 t/06bytea.t
@@ -66,7 +66,7 @@ SHA1 3b6cb08c1f652a8648a5939751bbc380b3939504 types.h
SHA1 f07cd5ecaeb854c81ceb9206364979cf607e6546 win32.mak
-----BEGIN PGP SIGNATURE-----
-iEYEAREDAAYFAlPvrDEACgkQvJuQZxSWSshdmACgnIbQICeyR5/4D3jVROgnjEqX
-8ukAn0G53IdUFfABZBRj5BOE4qMYmF+3
-=WSIG
+iEYEAREDAAYFAlP1BvwACgkQvJuQZxSWSsiUtQCfUgc76Xdq8wZ4dWAeuZpXAILE
+VXoAoPDynlupQMAbMIkUa30xao0DkPvE
+=7rvk
-----END PGP SIGNATURE-----
@@ -4,7 +4,7 @@ package Bundle::DBD::Pg;
use strict;
use warnings;
-$VERSION = '3.4.0';
+$VERSION = '3.4.1';
1;
@@ -26,7 +26,7 @@ my $dbh = connect_database();
if (! $dbh) {
plan skip_all => 'Connection to database failed, cannot continue testing';
}
-plan tests => 545;
+plan tests => 547;
isnt ($dbh, undef, 'Connect to database for database handle method testing');
@@ -483,11 +483,16 @@ is ($dbh->get_info(25), 'N', $t);
# Test of the "table_info" database handle method
#
-$t='DB handle method "table_info" works when called with undef arguments';
+$t='DB handle method "table_info" works when called with empty arguments';
$sth = $dbh->table_info('', '', 'dbd_pg_test', '');
my $number = $sth->rows();
ok ($number, $t);
+$t='DB handle method "table_info" works when called with \'%\' arguments';
+$sth = $dbh->table_info('%', '%', 'dbd_pg_test', '%');
+$number = $sth->rows();
+ok ($number, $t);
+
# Check required minimum fields
$t='DB handle method "table_info" returns fields required by DBI';
$result = $sth->fetchall_arrayref({});
@@ -1179,6 +1184,10 @@ $t='DB handle method "tables" works with a "pg_noprefix" attribute';
@result = $dbh->tables('', '', 'dbd_pg_test', '', {pg_noprefix => 1});
is ($result[0], 'dbd_pg_test', $t);
+$t='DB handle method "tables" works with type=\'%\'';
+@result = $dbh->tables('', '', 'dbd_pg_test', '%');
+like ($result[0], qr/dbd_pg_test/, $t);
+
#
# Test of the "type_info_all" database handle method
#