Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 99144
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: greg [...] turnstep.com
Requestors: vaclav.ovsik [...] i.cz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 3.4.2



Subject: DBD::Pg 3.4.1 - dbh method table_info() fails with postgresql 9.1
Date: Thu, 25 Sep 2014 21:30:00 +0200
To: bug-DBD-Pg [...] rt.cpan.org
From: Václav Ovsík <vaclav.ovsik [...] i.cz>
Hi, thanks for DBD::Pg beforehand! My last upgrade of DBD::Pg to version 3.4.1 on Debian (I did the rebuild from unstable Debian Sid for stable Debian Wheezy) brought some problem with Request Tracker. I'm preparing upgrade from 3.8.16 do 4.2.7 of Request Tracker and upgrade process failed. I analyzed down to the following: zito@rt2:~$ cat pgtableinfo2 #!/usr/bin/perl use DBI; $dbh = DBI->connect("dbi:Pg:dbname=zito", '', '', {AutoCommit => 1}); my $sth = $dbh->table_info( '', '', '', "'TABLE'"); zito@rt2:~$ ./pgtableinfo2 DBD::Pg::db table_info failed: ERROR: operator does not exist: text = integer LINE 34: ) ti WHERE "TABLE_TYPE" IN (1) ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. at ./pgtableinfo2 line 4. Previous version of DBD::Pg (2.19.3) was not affected. Cheers -- Zito
Thanks for the report, we will look into this soon.
Fixed in 9f3cce7ac9574f6329856fdc1f11bd73fe6a572b, will be a part of the upcoming release, most likely 3.4.2
Version 3.4.2 is out: please test it out when you can. Note that you don't need to single quote TABLE, you can simply do: , 'TABLE') or , "TABLE")
Subject: Re: [rt.cpan.org #99144] DBD::Pg 3.4.1 - dbh method table_info() fails with postgresql 9.1
Date: Fri, 26 Sep 2014 15:13:12 +0200
To: Greg Sabino Mullane via RT <bug-DBD-Pg [...] rt.cpan.org>
From: Václav Ovsík <vaclav.ovsik [...] i.cz>
Thank you very much for the fastest bug fix I ever see! ;) I build the Debian package libdbd-pg-perl_3.4.2-1~icz7+1_amd64.deb and rerun database upgrade of our Request Tracker and it reached the end with success. The problem with 3.4.1 version was in https://github.com/bestpractical/rt/blob/4.2-trunk/etc/upgrade/3.9.8/content where the method $RT::Handle->_TableNames is called The method is define in https://github.com/bestpractical/rt/blob/4.2-trunk/lib/RT/Handle.pm and it contains: $dbh->table_info( '', undef, undef, "'TABLE'"); The bug is fixed and this ticket can be closed. Thank you very much Cheers -- Zito