Minor bug in DBD::ODBC 02simple test

Minor bug in DBD::ODBC 02simple test

am 15.12.2005 11:25:03 von Martin.Evans

Around about line 128 DBD::ODBC's 02simple test does:

# Note, this test will fail if no data sources defined or if
# data_sources is unsupported.
my @data_sources = DBI->data_sources('ODBC');
#diag("Data sources:\n\t", join("\n\t",@data_sources),"\n\n");
cmp_ok($#data_sources, '>', 0, "data sources test");

It also fails if you only have 1 data source but that can be fixed by changing
the comparison:

cmp_ok($#data_sources, '>=', 0, "data sources test");

Martin
--
Martin J. Evans
Easysoft Ltd, UK
Development