Skip Menu |

This queue is for tickets about the DBIx-Report-Excel CPAN distribution.

Report information
The Basics
Id: 73136
Status: resolved
Priority: 0/
Queue: DBIx-Report-Excel

People
Owner: Nobody in particular
Requestors: nonsolosoft [...] diff.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.2a
Fixed in: (no value)



Subject: undefined value on line 291
Can't use an undefined value as an ARRAY reference at /home/appworker/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/DBIx/Report/Excel.pm line 291. #!/usr/bin/env perl use strict; use warnings; use DBI; use DBIx::Report::Excel; my $dbh = DBI->connect("dbi:Pg:dbname=tv-tests host=vipera", "forcan", "forcat", {}); $dbh->do('set search_path=wrk_tv,public'); my $report = DBIx::Report::Excel->new( "ReportTest.xls", dbh => $dbh, ); $report->sql(q{ /*--- Title: spot per uscita ---*/ SELECT u.cod_uscita,u.clock_number,u.freephone,u.channel_name,u.length_sec,count(calendar.codice) AS spot,from_date,to_date,from_time,to_time FROM uscite as u left join calendar on u.cod_uscita=calendar.cod_uscita GROUP BY u.cod_uscita,u.clock_number,u.freephone,u.channel_name,u.length_sec,from_date,to_date,from_time,to_time ORDER BY freephone,u.cod_uscita; }); $report->write(); $report->close(); perl 5.12.3 on linux
-- SQL::Parser > 1.24 does not have column_names attribute. Fixed in version 0.3 -- Dmytro Kovalov