Subject: | Loading bug in Store::DBI |
Bot::BasicBot::Pluggable::Module::SimpleBlog has a bunch of fails, because it is loading Store::DBI in its tests..
Looks like the Pluggable tests don't directly test Store loading for DBI, if I add this to 03store.t:
isa_ok(
Bot::BasicBot::Pluggable::Store->new("DBI"),
'Bot::BasicBot::Pluggable::Store::DBI'
);
isa_ok( Bot::BasicBot::Pluggable::Store->new( { type => "DBI" } ),
'Bot::BasicBot::Pluggable::Store::DBI' );
I get these errors:
DBD::SQLite::db do failed: table "basicbot" already exists at /usr/src/perl/Bot-BasicBot-Pluggable-1.20/lib/Bot/BasicBot/Pluggable/Store/DBI.pm line 36.
ok 4 - An object of class 'Bot::BasicBot::Pluggable::Store::DBI' isa 'Bot::BasicBot::Pluggable::Store::DBI'
DBD::SQLite::db do failed: table "basicbot" already exists at /usr/src/perl/Bot-BasicBot-Pluggable-1.20/lib/Bot/BasicBot/Pluggable/Store/DBI.pm line 36.
(tho it doesnt actually fail, grrr)
Anyway it looks like DBD::SQLite's syntax for table_info changed at some point.. I changed line 31 in Store::DBI from:
my $sth = $self->dbh->table_info( '', '', $table, "TABLE" );
my $sth = $self->dbh->table_info( '%', '%', $table, "TABLE" );
and it stops complaining.