Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 61445
Status: resolved
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: JOE [...] realfriend.org
Cc:
AdminCc:

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



Subject: "make test" failure in DBI 1.614 on Mac OS X 10.6.4
Date: Sat, 18 Sep 2010 02:39:37 -0700
To: bug-DBI [...] rt.cpan.org
From: Joe Lazaro <JOE [...] realfriend.org>
I attempted to install DBI 1.614 on my Mac through the CPAN shell, but failed due to a space character in the full path to my CPAN build directory which caused the error message below. Show quoted text
------ BEGIN OUTPUT SECTION -------- t/zvxgp_50dbm_simple.t ..... ok t/zvxgp_51dbm_file.t ....... 1/? DBD::Gofer::db selectall_arrayref failed: Couldn't find WHERE clause in ' Support/.cpan/build/DBI-1.614-Q0y59I/test_output_51151/fred"' at /Users/joe/Library/Application Support/.cpan/build/DBI-1.614-Q0y59I/blib/lib/DBI/DBD/SqlEngine.pm line 274; DBD::DBM::db prepare failed [for Statement "select * from "/Users/joe/Library/Application Support/.cpan/build/DBI-1.614-Q0y59I/test_output_51151/fred""] at DBI::PurePerl DBI::db::prepare line 116. at ./t/51dbm_file.t line 63 Can't use an undefined value as an ARRAY reference at ./t/51dbm_file.t line 64. Compilation failed in require at t/zvxgp_51dbm_file.t line 4. # Tests were run but no plan was declared and done_testing() was not seen. t/zvxgp_51dbm_file.t ....... Dubious, test returned 2 (wstat 512, 0x200) All 6 subtests passed ------ END OUTPUT SECTION ------ Here is the section of code from 51dbm_file.t where the error comes from
------ BEGIN CODE ------ my $abs_tbl = File::Spec->catfile( $dir, 'fred' ); # work around SQL::Statement bug DBD::DBM::Statement->isa("SQL::Statement") and SQL::Statement->VERSION() lt "1.32" and $abs_tbl =~ s|\\|/|g; $r = $dbh->selectall_arrayref( sprintf( q|select * from "%s"|, $abs_tbl ) ); ok( @$r == 2, 'rows found via select via fully qualified path' ); ------ END CODE ------ My CPAN build directory is "/Users/joe/Library/Application Support/.cpan/build/". I did not set this manually, it was chosen automatically by my system. I'm using Perl v5.8.9. I had to change my build directory (really just a trick with a symbolic link) so that it didn't have any spaces in order for the tests to complete without error. Regards, Joe
Thanks! Fixed in DBI-1.614_90.