@@ -1,13 +1,20 @@
'GSM' is Greg Sabino Mullane, greg@turnstep.com
+Version 3.4.2 Released September 25, 2015 (git commit 61440e1f4ccb6c293c5838676da1942e0df67271)
+
+ - Fix bug where single-quoted type arguments to the table_info()
+ method were causing a SQL error.
+ [Greg Sabino Mullane] (CPAN bug #99144)
+
+
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>]
+ - 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)
@@ -1,6 +1,6 @@
--- #YAML:1.0
name : DBD-Pg
-version : 3.4.1
+version : 3.4.2
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.1
+ version : 3.4.2
Bundle::DBD::Pg:
file : lib/Bundle/DBD/Pg.pm
- version : 3.4.1
+ version : 3.4.2
keywords:
- Postgres
@@ -48,6 +48,7 @@ resources:
bugtracker : http://rt.cpan.org/Public/Dist/Display.html?Name=DBD-Pg
repository : git://bucardo.org/dbdpg.git
MailingList : http://www.nntp.perl.org/group/perl.dbd.pg/
+ IRC : irc://irc.freenode.net/#postgresql
meta-spec:
version : 1.4
@@ -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.1';
+my $VERSION = '3.4.2';
## 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.1');
+ use version; our $VERSION = qv('3.4.2');
use DBI ();
use DynaLoader ();
@@ -1137,7 +1137,7 @@ use 5.008001;
if (defined($type) and length($type) and $type ne '%') {
my $type_restrict = join ', ' =>
- map { $dbh->quote($_) unless /^'/ }
+ map { /^'/ ? $_ : $dbh->quote($_) }
grep {length}
split(',', $type);
$tbl_sql = qq{SELECT * FROM ($tbl_sql) ti WHERE "TABLE_TYPE" IN ($type_restrict)};
@@ -1682,7 +1682,7 @@ DBD::Pg - PostgreSQL database driver for the DBI module
=head1 VERSION
-This documents version 3.4.1 of the DBD::Pg module
+This documents version 3.4.2 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.1 of DBD::Pg, the Perl interface to Postgres using DBI.
+This is version 3.4.2 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/
@@ -15,24 +15,24 @@ not run its Makefile.PL or Build.PL.
Hash: RIPEMD160
SHA1 6f4143600430e0bc949c17b05ac34844e5fb3ee4 .perlcriticrc
-SHA1 81f729ce60e2eb4163382cbf6e7f45c7a1dcf830 Changes
+SHA1 1434c1ba2d1896e341cc4e11892ea5c0a6407790 Changes
SHA1 21bc5f3c797d4d5b72285198ffeb1e4e1f0a2902 LICENSES/artistic.txt
SHA1 06877624ea5c77efe3b7e39b0f909eda6e25a4ec LICENSES/gpl-2.0.txt
SHA1 9c2b33069c9ceb7cd57ea0aeb7b8de144ab75672 MANIFEST
SHA1 8d2857ee9a6326c08507d8552f86709dd068fbe5 MANIFEST.SKIP
-SHA1 258f6108b4b95af46a88be3089ad3ac55f062dd2 META.yml
-SHA1 328948695a097c9cf75ef55cd58896cdcfc23afc Makefile.PL
+SHA1 4ed05326360f29e22a4ec5341bfe1cb14938bb3a META.yml
+SHA1 874fd66e4848de0b5ad68c98f8f74099a9d2c5a3 Makefile.PL
SHA1 8d7577d85e3a6299c1af5a12ac5faa3af6d11b18 Pg.h
-SHA1 4d33d116054d6a56e0ce3f1119eafdd8e90ecd2e Pg.pm
+SHA1 933b8b8727391ddc076f1c9a005d79a4ec335200 Pg.pm
SHA1 595b26f97c7708f82bd5c2c60e4f59724958c2bc Pg.xs
-SHA1 6cbb661c34938b85c9009694f738c039282149ae README
+SHA1 f745fb47b1a969573d4992a1a6fcb8c064c01db0 README
SHA1 0332ac652afae7e53181e075ca446b88b8631ac6 README.dev
SHA1 7e213bf90f513595b59c0a2c4ef94fea1592efcf README.win32
-SHA1 15c20ab7888be67fa0c6f98aa81f2c4e20bd3f66 TODO
+SHA1 d1d664776d39011f328c21bef989b937d5d5b1db TODO
SHA1 74f0a441f0593fd6902d57ab5922cf799ac57d44 dbdimp.c
SHA1 886c53b8dcc360f46077bd5cfbf905d7ac530243 dbdimp.h
SHA1 6c33bcf138e577722283bef02fceb8cbce4d100d dbivport.h
-SHA1 79c0e361486f73e883391bb1ec4d287979d897ac lib/Bundle/DBD/Pg.pm
+SHA1 9913d5aa93a52c86623ed12d8cc01b3d34606cd4 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 31b673055dd68c5879bbd7547ea8bd656c3f89d7 t/03dbmethod.t
+SHA1 ec9bb004253fcdae72c968f5ec6d422c2bd95b1a 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-----
-iEYEAREDAAYFAlP1BvwACgkQvJuQZxSWSsiUtQCfUgc76Xdq8wZ4dWAeuZpXAILE
-VXoAoPDynlupQMAbMIkUa30xao0DkPvE
-=7rvk
+iEYEAREDAAYFAlQkhV0ACgkQvJuQZxSWSsgM0wCdE9gDa+kQ6bX5MZz9pk+LK+Ur
+bc4AnjKhaG3pN8GY0VSV9w7DVFyEh92W
+=0eI/
-----END PGP SIGNATURE-----
@@ -7,6 +7,7 @@ May also be some at
https://github.com/bucardo/dbdpg
(although we prefer using cpan.org)
+- Make all tests work when server and/or client encoding is SQL_ASCII
- Enable native JSON decoding, similar to arrays, perhaps with JSON::PP
- Allow partial result sets, either via PQsetSingleRowMode or something better
- Hack libpq to make user-defined number of rows returned
@@ -4,7 +4,7 @@ package Bundle::DBD::Pg;
use strict;
use warnings;
-$VERSION = '3.4.1';
+$VERSION = '3.4.2';
1;
@@ -493,6 +493,9 @@ $sth = $dbh->table_info('%', '%', 'dbd_pg_test', '%');
$number = $sth->rows();
ok ($number, $t);
+$t=q{DB handle method "table_info" works when called with a 'TABLE' last argument};
+$sth = $dbh->table_info( '', '', '', "'TABLE'");
+
# Check required minimum fields
$t='DB handle method "table_info" returns fields required by DBI';
$result = $sth->fetchall_arrayref({});